Changeset 1112


Ignore:
Timestamp:
Nov 23, 2010, 2:19:44 AM (9 years ago)
Author:
Bruno Cornec
Message:
  • Attempt to fix #56, by incorporating the builrepo script content into pb.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • devel/pb/bin/pb

    r1111 r1112  
    14981498chmod 644 $ENV{'PBPROJ'}.sources.list
    14991499
     1500# Up two levels to deal with the dist dir cross versions
     1501cd ../..
     1502mkdir -p dists/$dver/contrib/binary-$darch dists/$dver/contrib/source
     1503
    15001504# Prepare a script to create apt info file
    1501 (cd .. ; for a in i386 amd64 ia64; do mkdir -p dists/$dver/contrib/binary-\$a; dpkg-scanpackages -a\$a $dver/$darch /dev/null | gzip -c9 > dists/$dver/contrib/binary-\$a/Packages.gz; done; mkdir -p dists/$dver/contrib/source; dpkg-scansources $dver/$darch /dev/null | gzip -c9 > dists/$dver/contrib/source/Sources.gz)
    1502 #(cd .. ; rm -f dists/$dver/Release ; apt-ftparchive release dists/$dver > dists/$dver/Release; gpg --sign -ba -o dists/$dver/Release.gpg dists/$dver/Release)
     1505TMPD=`mktemp -d /tmp/pb.XXXXXXXXXX` || exit 1
     1506mkdir -p \$TMPD
     1507cat > \$TMPD/Release << EOT
     1508Archive: unstable
     1509Component: contrib
     1510Origin: $ENV{'PBPROJ'}
     1511Label: $ENV{'PBPROJ'} dev repository $pbrepo->{$ENV{'PBPROJ'}}
     1512EOT
     1513
     1514echo "Creating Packages metadata ($darch)"
     1515dpkg-scanpackages -a$darch $dver/$darch /dev/null | gzip -c9 > dists/$dver/contrib/binary-$darch/Packages.gz
     1516dpkg-scanpackages -a$darch $dver/$darch /dev/null | bzip2 -c9 > dists/$dver/contrib/binary-$darch/Packages.bz2
     1517echo "Creating Contents metadata ($darch)"
     1518apt-ftparchive contents $dver | gzip -c9 > dists/$dver/contrib/Contents-$darch.gz
     1519echo "Creating Release metadata ($darch)"
     1520cat \$TMPD/Release > dists/$dver/contrib/binary-$darch/Release
     1521echo "Architecture: $darch" >> dists/$dver/contrib/binary-$darch/Release
     1522echo "Creating Source metadata"
     1523dpkg-scansources $dver/$darch /dev/null | gzip -c9 > dists/$dver/contrib/source/Sources.gz
     1524cat \$TMPD/Release > dists/$dver/contrib/source/Release
     1525echo "Architecture: Source" >> dists/$dver/contrib/source/Release
     1526echo "Creating Release metadata"
     1527apt-ftparchive release dists/$dver > dists/$dver/Release
     1528rm -rf \$TMPD
    15031529EOF
    15041530        } elsif ($dtype eq "ebuild") {
Note: See TracChangeset for help on using the changeset viewer.