Changeset 544 for devel/pb/bin/pb


Ignore:
Timestamp:
Sep 16, 2008, 2:41:23 AM (11 years ago)
Author:
Bruno Cornec
Message:

Still improving debian handling. Final delivery and $made still not completely correct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r541 r544  
    804804            symlink "pbconf/$ddir-$dver-$arch","debian" || die "Unable to symlink to pbconf/$ddir-$dver-$arch";
    805805            chmod 0755,"debian/rules";
    806             if ($dver !~ /[0-9]/) {
    807                 # dpkg-deb doesn't accept non digit versions. removing checks
    808                 # dpkg-source checks upper case when generating perl modules
    809             }
     806
    810807            pb_system("dpkg-buildpackage -us -uc -rfakeroot","Building package","verbose");
    811             $made="$made $pbpkg"."_*.deb $pbpkg"."_*.dsc $pbpkg"."_*.tar.gz";
     808            # Get the name of the generated packages
     809            open(LOG,"$ENV{'PBTMP'}/system.log") || die "Unable to open $ENV{'PBTMP'}/system.log";
     810            while (<LOG>) {
     811                chomp();
     812                my $tmp = $_;
     813                next if ($tmp !~ /^dpkg-deb :/);
     814                $tmp =~ s|.*../(.*)_(.*).deb.*|$1|;
     815                $made="$made $tmp.dsc $tmp.tar.gz $tmp"."_*.deb $tmp"."_*.changes";
     816            }
     817            close(LOG);
    812818        } elsif ($dtype eq "ebuild") {
    813819            my @ebuildfile;
Note: See TracChangeset for help on using the changeset viewer.