Changeset 541 in ProjectBuilder for devel/pb/bin
- Timestamp:
- Sep 15, 2008, 1:39:21 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/bin/pb
r540 r541 563 563 my $pbrealpkg = pb_cms_get_real_pkg($pbpkg,$pb{'dtype'}); 564 564 $pb{'realpkg'} = $pbrealpkg; 565 pb_log(1,"Virtual package $pbpkg has a real package name of $pbrealpkg on $ddir-$dver\n") if ($pbrealpkg ne $pbpkg); 565 566 566 567 # Filter build files from the less precise up to the most with overloading … … 792 793 $made="$made $_"; 793 794 } 794 795 if (-f "/usr/bin/rpmlint") { 796 pb_system("rpmlint $made","Checking validity of rpms with rpmlint","verbose"); 797 } 795 close(LOG); 796 798 797 } elsif ($dtype eq "deb") { 799 798 chdir "$ENV{'PBBUILDDIR'}" || die "Unable to chdir to $ENV{'PBBUILDDIR'}"; … … 811 810 pb_system("dpkg-buildpackage -us -uc -rfakeroot","Building package","verbose"); 812 811 $made="$made $pbpkg"."_*.deb $pbpkg"."_*.dsc $pbpkg"."_*.tar.gz"; 813 if (-f "/usr/bin/lintian") {814 pb_system("lintian $made","Checking validity of debs with lintian","verbose");815 }816 812 } elsif ($dtype eq "ebuild") { 817 813 my @ebuildfile; … … 881 877 } 882 878 } 879 # Packages check if needed 880 if ($dtype eq "rpm") { 881 if (-f "/usr/bin/rpmlint") { 882 pb_system("rpmlint $made","Checking validity of rpms with rpmlint","verbose"); 883 } 884 } elsif ($dtype eq "deb") { 885 if (-f "/usr/bin/lintian") { 886 pb_system("lintian $made","Checking validity of debs with lintian","verbose"); 887 } 888 } else { 889 pb_log(0, "No check done for $dtype yet"); 890 } 891 883 892 # Keep track of what is generated so that we can get them back from VMs 884 893 open(KEEP,"> $ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}") || die "Unable to create $ENV{'PBBUILDDIR'}/pbgen-$ENV{'PBPROJVER'}-$ENV{'PBPROJTAG'}";
Note:
See TracChangeset
for help on using the changeset viewer.