New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79300


Ignore:
Timestamp:
06/08/11 17:01:05 (4 years ago)
Author:
fotanus@…
Message:

Changed postdestroot phase name for checkdestroot

Avoids confusion for the name

Location:
branches/gsoc11-post-destroot/base/src/port1.0
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • branches/gsoc11-post-destroot/base/src/port1.0/Makefile

    r79008 r79300  
    88        porttrace.tcl portlivecheck.tcl portdistcheck.tcl portmirror.tcl \ 
    99        portload.tcl portunload.tcl portdistfiles.tcl fetch_common.tcl \ 
    10         portpostdestroot.tcl 
     10        portcheckdestroot.tcl 
    1111 
    1212include ../../Mk/macports.subdir.mk 
  • branches/gsoc11-post-destroot/base/src/port1.0/port.tcl

    r79008 r79300  
    4343package require portbuild 1.0 
    4444package require portdestroot 1.0 
    45 package require portpostdestroot 1.0 
     45package require portcheckdestroot 1.0 
    4646package require portinstall 1.0 
    4747package require portuninstall 1.0 
  • branches/gsoc11-post-destroot/base/src/port1.0/portcheckdestroot.tcl

    r79151 r79300  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 
    2 # portpostdestroot.tcl 
     2# portcheckdestroot.tcl 
    33 
    4 package provide portpostdestroot 1.0 
     4package provide portcheckdestroot 1.0 
    55package require portutil 1.0 
    66 
    7 set org.macports.postdestroot [target_new org.macports.postdestroot portpostdestroot::postdestroot_main] 
    8 target_provides ${org.macports.postdestroot} postdestroot 
    9 target_requires ${org.macports.postdestroot} main destroot 
    10 target_prerun ${org.macports.postdestroot} portpostdestroot::postdestroot_start 
     7set org.macports.checkdestroot [target_new org.macports.checkdestroot portcheckdestroot::checkdestroot_main] 
     8target_provides ${org.macports.checkdestroot} checkdestroot 
     9target_requires ${org.macports.checkdestroot} main destroot 
     10target_prerun ${org.macports.checkdestroot} portcheckdestroot::checkdestroot_start 
    1111 
    12 namespace eval portpostdestroot { 
     12namespace eval portcheckdestroot { 
    1313} 
    1414 
     
    2222 
    2323 
    24 # Starting procedure from postdestroot phase. Check for permissions. 
    25 proc portpostdestroot::postdestroot_start {args} { 
     24# Starting procedure from checkdestroot phase. Check for permissions. 
     25proc portcheckdestroot::checkdestroot_start {args} { 
    2626    if { [getuid] == 0 && [geteuid] != 0 } { 
    2727        # if started with sudo but have dropped the privileges 
     
    3636 
    3737# List all links on a directory recursively. This function is for internal use. 
    38 proc portpostdestroot::links_list {dir} { 
     38proc portcheckdestroot::links_list {dir} { 
    3939    set ret {} 
    4040    foreach item [glob -nocomplain -type {d l} -directory $dir *] { 
     
    5050 
    5151# Check for errors on port symlinks 
    52 proc portpostdestroot::postdestroot_symlink_check {} { 
     52proc portcheckdestroot::checkdestroot_symlink_check {} { 
    5353    global UI_PREFIX destroot prefix 
    5454    ui_notice "$UI_PREFIX Checking for links" 
     
    7878 
    7979# Check for erros that violates the macports directory tree. 
    80 proc portpostdestroot::postdestroot_mtree_check {} { 
     80proc portcheckdestroot::checkdestroot_mtree_check {} { 
    8181 
    8282    global destroot prefix portsharepath destroot.violate_mtree 
     
    161161} 
    162162 
    163 proc portpostdestroot::postdestroot_main {args} { 
     163proc portcheckdestroot::checkdestroot_main {args} { 
    164164    global UI_PREFIX 
    165     ui_notice "$UI_PREFIX Executing post-destroot phase" 
     165    ui_notice "$UI_PREFIX Executing check-destroot phase" 
    166166 
    167     postdestroot_symlink_check 
    168     postdestroot_mtree_check 
     167    checkdestroot_symlink_check 
     168    checkdestroot_mtree_check 
    169169    return 0 
    170170} 
  • branches/gsoc11-post-destroot/base/src/port1.0/portinstall.tcl

    r79008 r79300  
    3939target_provides ${org.macports.install} install 
    4040target_runtype ${org.macports.install} always 
    41 target_requires ${org.macports.install} main archivefetch fetch checksum extract patch configure build destroot postdestroot 
     41target_requires ${org.macports.install} main archivefetch fetch checksum extract patch configure build destroot checkdestroot 
    4242target_prerun ${org.macports.install} portinstall::install_start 
    4343 
Note: See TracChangeset for help on using the changeset viewer.