Changeset 1559 in ProjectBuilder


Ignore:
Timestamp:
May 21, 2012, 4:03:18 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • pb: Fix deb repo so that we will re-generate package information for all existing architectures so that if we generate slightly different _all packages (e.g. from the date being included), all of the architectures will be able to download the package generated by any of the builds. (Eric Anderson)
  • pb: Be more verbose when the $ENV{HOME} in the VE case is not found, and split the 2 cases (VE vs non-VE) (Eric Anderson)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1558 r1559  
    21802180EOT
    21812181
    2182 echo "Creating Packages metadata ($pbos->{'arch'} aka $debarch)"
    2183 dpkg-scanpackages -a$debarch $pbos->{'version'} /dev/null | gzip -c9 > dists/$pbos->{'version'}/$projcomponent/binary-$debarch/Packages.gz
    2184 dpkg-scanpackages -a$debarch $pbos->{'version'} /dev/null | bzip2 -c9 > dists/$pbos->{'version'}/$projcomponent/binary-$debarch/Packages.bz2
     2182echo "Creating Packages metadata"
     2183for i in dists/$pbos->{version}/$projcomponent/binary-*; do
     2184    arch=`basename \$i | sed 's/binary-//'`
     2185    echo "Packages for \$arch:"
     2186    dpkg-scanpackages -a\$arch $pbos->{'version'} /dev/null | gzip -c9 > dists/$pbos->{'version'}/$projcomponent/binary-\$arch/Packages.gz
     2187    dpkg-scanpackages -a\$arch $pbos->{'version'} /dev/null | bzip2 -c9 > dists/$pbos->{'version'}/$projcomponent/binary-\$arch/Packages.bz2
     2188done
    21852189echo "Creating Contents metadata"
    21862190apt-ftparchive contents $pbos->{'version'} | gzip -c9 > dists/$pbos->{'version'}/Contents.gz
     
    22242228
    22252229    # Remove a potential $ENV{'HOME'} as tdir should be relative to pb's home
    2226     $tdir =~ s|\$ENV.+\}/||;
     2230    if ($cmt =~ /^VE/o) {
     2231        $tdir =~ s|\$ENV.+\}/|| or confess "for $cmt: $tdir must have \$ENV{'HOME'} in it or the remainder of the code won't work since some parts use relative pathing and others will try absolute.  Use a symlink if necessary to place the real files in a different place than under your home directory";
     2232    } else {
     2233        # process, ok if not present.
     2234        $tdir =~ s|\$ENV.+\}/||;
     2235    }
    22272236
    22282237    my $tm = "";
Note: See TracChangeset for help on using the changeset viewer.