Changeset 2190


Ignore:
Timestamp:
Mar 3, 2017, 4:07:36 AM (3 years ago)
Author:
bruno
Message:

Add support for no arch pkg for deb (aka all) in repositories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r2187 r2190  
    24522452# Up two levels to deal with the dist dir cross versions
    24532453cd ..
    2454 mkdir -p dists/$pbos->{'version'}/$projcomponent/binary-$debarch dists/$pbos->{'version'}/$projcomponent/source
     2454mkdir -p dists/$pbos->{'version'}/$projcomponent/binary-$debarch dists/$pbos->{'version'}/$projcomponent/source dists/$pbos->{'version'}/$projcomponent/binary-all
    24552455
    24562456# Prepare a script to create apt info file
     
    24762476apt-ftparchive contents $pbos->{'version'} | gzip -c9 > dists/$pbos->{'version'}/Contents.gz
    24772477echo "Creating Release metadata ($pbos->{'arch'} aka $debarch)"
     2478cat \$TMPD/Release > dists/$pbos->{'version'}/$projcomponent/binary-all/Release
     2479echo "Architecture: all" >> dists/$pbos->{'version'}/$projcomponent/binary-all/Release
    24782480cat \$TMPD/Release > dists/$pbos->{'version'}/$projcomponent/binary-$debarch/Release
    24792481echo "Architecture: $debarch" >> dists/$pbos->{'version'}/$projcomponent/binary-$debarch/Release
     
    28212823        my $debarch = pb_get_debarch($pbos2);
    28222824        my $projcomponent = pb_get_debpc($pbos2);
    2823         for my $f ("dists/$pbos2->{'version'}/$projcomponent/binary-$debarch/Release","dists/$pbos2->{'version'}/$projcomponent/source/Release","dists/$pbos2->{'version'}/Release") {
     2825        for my $f ("dists/$pbos2->{'version'}/$projcomponent/binary-$debarch/Release","dists/$pbos2->{'version'}/$projcomponent/binary-all/Release","dists/$pbos2->{'version'}/$projcomponent/source/Release","dists/$pbos2->{'version'}/Release") {
    28242826            my $debdir = dirname($cptarget);
    28252827            pb_system("cd $ENV{'PBBUILDDIR'} ; $cpcmd $debdir/$f . 2> /dev/null","Getting deb $f file from $debdir");
Note: See TracChangeset for help on using the changeset viewer.