[system] / trunk / pg / lib / PGcore.pm Repository:
ViewVC logotype

Diff of /trunk/pg/lib/PGcore.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 7137 Revision 7138
823 my $tmpDirectory = $self->tempDirectory(); 823 my $tmpDirectory = $self->tempDirectory();
824#warn "\nTMP tmpDirectory $tmpDirectory"; 824#warn "\nTMP tmpDirectory $tmpDirectory";
825 unless ( -e $tmpDirectory) { # if by some unlucky chance the tmpDirectory hasn't been created, create it. 825 unless ( -e $tmpDirectory) { # if by some unlucky chance the tmpDirectory hasn't been created, create it.
826 my $parentDirectory = $tmpDirectory; 826 my $parentDirectory = $tmpDirectory;
827 $parentDirectory =~s|/$||; # remove a trailing / 827 $parentDirectory =~s|/$||; # remove a trailing /
828 $parentDirectory =~s|/\w*$||; # remove last node 828 $parentDirectory =~s|/[^/]*$||; # remove last node
829 my ($perms, $groupID) = (stat $parentDirectory)[2,5]; 829 my ($perms, $groupID) = (stat $parentDirectory)[2,5];
830 #FIXME where is the parentDirectory defined?? 830 #FIXME where is the parentDirectory defined??
831#warn "Creating tmp directory at $tmpDirectory, perms $perms groupID $groupID"; 831#warn "Creating tmp directory at $tmpDirectory, perms $perms groupID $groupID";
832 $self->createDirectory($tmpDirectory, $perms, $groupID) 832 $self->createDirectory($tmpDirectory, $perms, $groupID)
833 or warn "Failed to create parent tmp directory at $path"; 833 or warn "Failed to create parent tmp directory at $path";

Legend:
Removed from v.7137  
changed lines
  Added in v.7138

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9