Changeset 541 in ProjectBuilder for devel/pb/bin/pb


Ignore:
Timestamp:
Sep 15, 2008, 1:39:21 PM (16 years ago)
Author:
Bruno Cornec
Message:

Working on the correct .deb generation for virtual/real packages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r540 r541  
    563563            my $pbrealpkg = pb_cms_get_real_pkg($pbpkg,$pb{'dtype'});
    564564            $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);
    565566
    566567            # Filter build files from the less precise up to the most with overloading
     
    792793                $made="$made $_";
    793794            }
    794 
    795             if (-f "/usr/bin/rpmlint") {
    796                 pb_system("rpmlint $made","Checking validity of rpms with rpmlint","verbose");
    797             }
     795            close(LOG);
     796
    798797        } elsif ($dtype eq "deb") {
    799798            chdir "$ENV{'PBBUILDDIR'}" || die "Unable to chdir to $ENV{'PBBUILDDIR'}";
     
    811810            pb_system("dpkg-buildpackage -us -uc -rfakeroot","Building package","verbose");
    812811            $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             }
    816812        } elsif ($dtype eq "ebuild") {
    817813            my @ebuildfile;
     
    881877        }
    882878    }
     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
    883892    # Keep track of what is generated so that we can get them back from VMs
    884893    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.