Changeset 537 in ProjectBuilder for devel/pb/lib
- Timestamp:
- Sep 10, 2008, 11:47:49 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/lib/ProjectBuilder/CMS.pm
r527 r537 112 112 The second parameter is the directory in which it is locally exposed (result of a checkout). If undef, then use the original CMS content. 113 113 The third parameter is the directory where we want to deliver it (result of export). 114 It returns the original tar file if we need to preserve it and undef if we use the produced one. 114 115 115 116 =cut … … 150 151 die "Unable to download $uri.\nNo wget/curl available, please install one of those"; 151 152 } 153 # We want to preserve the original tar file 152 154 pb_cms_export("file://$ENV{'PBTMP'}/$f",$source,$destdir); 155 return("$ENV{'PBTMP'}/$f"); 153 156 } elsif ($scheme eq "file") { 154 157 use File::MimeInfo; 155 158 my $mm = mimetype($path); 156 159 pb_log(2,"mimetype: $mm\n"); 157 pb_mkdir_p($destdir);158 160 159 161 if (defined $source) { 160 162 # Check whether the file is well formed 161 163 # (containing already a directory with the project-version name) 164 # 165 # If it's not the case, we try to adapt, but distro needing 166 # to verify the checksum will have issues (Fedora) 167 # Then upstream should be notified that they need to change their rules 162 168 my ($pbwf) = pb_conf_get_if("pbwf"); 163 169 if ((defined $pbwf) && (defined $pbwf->{$ENV{'PBPROJ'}})) { … … 165 171 } 166 172 } 173 pb_mkdir_p($destdir); 167 174 168 175 if ($mm =~ /\/x-bzip-compressed-tar$/) { … … 210 217 die "cms $scheme unknown"; 211 218 } 219 return(undef); 212 220 } 213 221
Note:
See TracChangeset
for help on using the changeset viewer.