Changeset 2079 in ProjectBuilder for devel/pb-modules
- Timestamp:
- Apr 28, 2016, 8:05:40 PM (9 years ago)
- Location:
- devel/pb-modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb-modules/etc/pb.conf.pod
r2032 r2079 560 560 Example: pbpassphrase pb = TheSecretPassPhrase 561 561 562 =item B<pbpbr> 563 564 Nature: Optional 565 Key: project (as defined in the -p option or PBPROJ environment variable) 566 Value: whatever. As soon as this is defined, then that project is known as using pbr for source epansion. 567 Conffile: project 568 Example: pbpbr python-redfish = 1 569 562 570 =item B<pbprojdir> 563 571 -
devel/pb-modules/lib/ProjectBuilder/VCS.pm
r2032 r2079 206 206 } 207 207 $source = pb_vcs_mod_htftp($source,"git"); 208 pb_system("cd $source ; stid=`$vcscmd stash create` ; $vcscmd archive --format=tar \$\{stid:=HEAD\} | (mkdir $tmp && cd $tmp && tar xf -)","Exporting current $source from GIT to $tmp "); 208 my ($pbpbr) = pb_conf_get_if("pbpbr"); 209 if ((defined $pbpbr) && (defined $pbpbr->{$ENV{'PBPROJ'}})) { 210 # The project use pbr so benefit from it to export data 211 pb_system("cd $source ; mkdir $tmp ; python setup.py sdist --keep-temp --dist-dir $tmp ; cd $tmp ; file=`ls *.tar.gz` ; tar xfz \$file ; dir=`tar tvfz \$file | head -1 | awk '{print \$6}'` ; if [ ! -d \$dir ] || [ \$dir = / ]; then exit -1 ; fi ; mv \$dir/* \$dir/.??* . ; rmdir \$dir ; rm -f \$file ; ls -al ","Exporting current $source from GIT with pbr to $tmp "); 212 } else { 213 # no pbr do it ourselves 214 pb_system("cd $source ; stid=`$vcscmd stash create` ; $vcscmd archive --format=tar \$\{stid:=HEAD\} | (mkdir $tmp && cd $tmp && tar xf -)","Exporting current $source from GIT to $tmp "); 215 } 209 216 } else { 210 217 $uri = pb_vcs_mod_htftp($uri,"git");
Note:
See TracChangeset
for help on using the changeset viewer.