Changeset 417 in ProjectBuilder for devel/pb/lib/ProjectBuilder/Env.pm
- Timestamp:
- Apr 27, 2008, 1:18:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/lib/ProjectBuilder/Env.pm
r416 r417 20 20 use ProjectBuilder::Base; 21 21 use ProjectBuilder::Conf; 22 use ProjectBuilder::CMS; 22 23 23 24 # Inherit from the "Exporter" module which handles exporting functions. … … 174 175 # 175 176 # Removes all directory existing below the delivery dir 176 # as they are temp dir only 177 # as they are temp dir only except when called from pbinit 177 178 # Files stay and have to be cleaned up manually if needed 178 179 # those files serves as communication channels between pb phases 179 180 # Removing them prevents a following phase to detect what has been done before 180 181 # 181 if ( -d $ENV{'PBDESTDIR'}) {182 if ((-d $ENV{'PBDESTDIR'}) && ($action !~ /pbinit/)) { 182 183 opendir(DIR,$ENV{'PBDESTDIR'}) || die "Unable to open directory $ENV{'PBDESTDIR'}: $!"; 183 184 foreach my $d (readdir(DIR)) { … … 210 211 # return values in that case are useless 211 212 # 212 if (($action =~ /^cms2/) || ($action =~ /^newver$/) ) {213 if (($action =~ /^cms2/) || ($action =~ /^newver$/) || ($action =~ /^pbinit$/)) { 213 214 214 215 #
Note:
See TracChangeset
for help on using the changeset viewer.