Changeset 1925 in ProjectBuilder
- Timestamp:
- Dec 26, 2014, 3:39:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
0.12.7/pb/bin/pb
r1923 r1925 3804 3804 $theorlist{"$pbos->{'name'}/$pbos->{'version'}/$pbos->{'arch'}/$pbrealpkgrpm-$pbver-$pbtag$pbos->{'suffix'}"} = 0; 3805 3805 } elsif ($pbos->{'type'} eq "deb") { 3806 $theorlist{"$pbos->{'name'}/$pbos->{'version'}/$pbrealpkgdeb"."_$pbver-$pbtag"."_$pbos->{'arch'}"} = 0; 3807 $archlist{"$pbos->{'name'}/$pbos->{'version'}/$pbrealpkgdeb"."_$pbver-$pbtag"} = "$pbos->{'arch'}"; 3806 my $pb; 3807 $pb->{'realpkg'} = $pbrealpkg; 3808 $pb->{'ver'} = $pbver; 3809 $pb->{'extdir'} = pb_get_extdir(); 3810 my $archp = pb_get_pkg_arch($pb,$pbos); 3811 $theorlist{"$pbos->{'name'}/$pbos->{'version'}/$pbrealpkgdeb"."_$pbver-$pbtag"."_$archp"} = 0; 3812 $archlist{"$pbos->{'name'}/$pbos->{'version'}/$pbrealpkgdeb"."_$pbver-$pbtag"} = "$archp"; 3808 3813 } elsif ($pbos->{'type'} eq "ebuild") { 3809 3814 my $prefix = "-r"; … … 3888 3893 my $p = $_; 3889 3894 $p =~ s/\.(i[3456]86|x86_64|noarch|src)\.rpm$//; 3895 $p =~ s/_amd64\.deb$/_x86_64.deb/; 3890 3896 $p =~ s/\.deb$//; 3891 #$p =~ s/_(i[3456]86|amd64|all)\.deb$//;3892 3897 $p =~ s/(-0\.[0-9]{8})[0-9]{6}/$1*/ if ((defined $testver) && (defined $testver->{$ENV{'PBPROJ'}}) && ($testver->{$ENV{'PBPROJ'}} =~ /true/i)); 3893 3898 $p =~ s/(-r|_p[0-9]+)\.ebuild/$1*/ if ((defined $testver) && (defined $testver->{$ENV{'PBPROJ'}}) && ($testver->{$ENV{'PBPROJ'}} =~ /true/i)); … … 4348 4353 } 4349 4354 4355 # 4356 # Return the arch of the package considered 4357 # 4358 sub pb_get_pkg_arch { 4359 4360 my $pb = shift; 4361 my $pbos = shift; 4362 my $archp = undef; 4363 4364 # Either we have an Architecture: all (deb noarch) in the control file or we have the arch we're building for 4365 # We look after this info in the tar built during previous phases hoping it's still available and valid 4366 # If not, we rebuild it 4367 my $src2="$ENV{'PBDESTDIR'}/$pb->{'realpkg'}-$pb->{'ver'}$pb->{'extdir'}.pbconf.tar.gz"; 4368 pb_system("cd $ENV{'PBBUILDDIR'} ; tar xfz $src2","Extracting pbconf","","quiet"); 4369 if ($pbos->{'type'} eq "deb") { 4370 my $ctrlf = "$pb->{'realpkg'}-$pb->{'ver'}$pb->{'extdir'}/pbconf/$pbos->{'name'}-$pbos->{'version'}-$pbos->{'arch'}/control"; 4371 open(CTRL, $ctrlf) || die "Unable to read $ctrlf"; 4372 $archp = $pbos->{'arch'}; 4373 while (<CTRL>) { 4374 $archp = "all" if (/^Architecture:\s*all/); 4375 } 4376 close(CTRL); 4377 } 4378 return($archp); 4379 } 4380 4350 4381 # Manages VM/RM SSH port communication 4351 4382 sub pb_get_port {
Note:
See TracChangeset
for help on using the changeset viewer.