Make sure that all the scripts use Packages.gz rather than Packages
when looking up metadata in the archive - Packages is deprecated.
This commit is contained in:
parent
353288125b
commit
847cb4dcdf
|
@ -143,6 +143,8 @@ debian-cd (2.2.24) UNRELEASED; urgency=low
|
|||
|
||||
[ Steve McIntyre ]
|
||||
* Cope with mipsel boot images moving location. Closes: #349563.
|
||||
* Make sure that all the scripts use Packages.gz rather than Packages
|
||||
when looking up metadata in the archive - Packages is deprecated.
|
||||
|
||||
-- Joey Hess <joeyh@debian.org> Sat, 7 Jan 2006 16:56:49 -0500
|
||||
|
||||
|
|
|
@ -115,9 +115,9 @@ EOF
|
|||
# XXX once mips gets kernel-image-2.4-<subarch> packages, use those
|
||||
# instead.
|
||||
for subarch in r4k-ip22 r5k-ip22 sb1-swarm-bn; do
|
||||
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' \
|
||||
$MIRROR/dists/$CODENAME/main/binary-mips/Packages \
|
||||
| grep -- "-$subarch$" | sort -n | tail -n 1 \
|
||||
zcat $MIRROR/dists/$CODENAME/main/binary-mips/Packages.gz | \
|
||||
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' | \
|
||||
grep -- "-$subarch$" | sort -n | tail -n 1 \
|
||||
>> debian-installer+kernel-$DI_CODENAME
|
||||
done
|
||||
|
||||
|
@ -134,9 +134,9 @@ EOF
|
|||
# XXX once mips gets kernel-image-2.4-<subarch> packages, use those
|
||||
# instead.
|
||||
for subarch in r3k-kn02 r4k-kn04 cobalt lasat; do
|
||||
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' \
|
||||
$MIRROR/dists/$CODENAME/main/binary-mipsel/Packages \
|
||||
| grep -- "-$subarch$" | sort -n | tail -n 1 \
|
||||
zcat $MIRROR/dists/$CODENAME/main/binary-mipsel/Packages.gz | \
|
||||
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' | \
|
||||
grep -- "-$subarch$" | sort -n | tail -n 1 \
|
||||
>> debian-installer+kernel-$DI_CODENAME
|
||||
done
|
||||
|
||||
|
@ -163,9 +163,9 @@ EOF
|
|||
for subarch in powerpc power3 power4 power3-pmac power3-chrp-rs6k \
|
||||
power4-pmac power4-chrp-rs6k powerpc-pmac \
|
||||
powerpc-prep powerpc-chrp powerpc-chrp-rs6k apus; do
|
||||
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' \
|
||||
$MIRROR/dists/$CODENAME/main/binary-powerpc/Packages \
|
||||
| grep -- "-$subarch$" | sort -n | tail -n 1 \
|
||||
zcat $MIRROR/dists/$CODENAME/main/binary-powerpc/Packages.gz | \
|
||||
sed -n 's/Package: \(kernel-image-.*-.*\)$/\1/p' | \
|
||||
grep -- "-$subarch$" | sort -n | tail -n 1 \
|
||||
>> debian-installer+kernel-$DI_CODENAME
|
||||
done
|
||||
|
||||
|
@ -190,15 +190,17 @@ vmelilo
|
|||
EOF
|
||||
|
||||
# Get all the latest 2.2 for mac kernel
|
||||
sed -n 's/Package: \(kernel-image-2.2.*-mac\)$/\1/p' \
|
||||
$MIRROR/dists/$CODENAME/main/binary-m68k/Packages | tail -n 1 \
|
||||
>> debian-installer+kernel-$DI_CODENAME
|
||||
zcat $MIRROR/dists/$CODENAME/main/binary-m68k/Packages.gz | \
|
||||
sed -n 's/Package: \(kernel-image-2.2.*-mac\)$/\1/p' | \
|
||||
tail -n 1 \
|
||||
>> debian-installer+kernel-$DI_CODENAME
|
||||
# Get the latest 2.4 kernels, except mac
|
||||
# XXX once m68k gets kernel-image-2.4-<subarch> packages, use those
|
||||
# instead.
|
||||
sed -n 's/Package: \(kernel-image-2.4.*\)$/\1/p' \
|
||||
$MIRROR/dists/$CODENAME/main/binary-m68k/Packages | tail -n 7 | \
|
||||
grep -v mac >> debian-installer+kernel-$DI_CODENAME
|
||||
zcat $MIRROR/dists/$CODENAME/main/binary-m68k/Packages.gz | \
|
||||
sed -n 's/Package: \(kernel-image-2.4.*\)$/\1/p' | \
|
||||
tail -n 7 | \
|
||||
grep -v mac >> debian-installer+kernel-$DI_CODENAME
|
||||
|
||||
cat >> debian-installer+kernel-$DI_CODENAME << EOF
|
||||
#endif
|
||||
|
@ -206,9 +208,10 @@ cat >> debian-installer+kernel-$DI_CODENAME << EOF
|
|||
discover1
|
||||
EOF
|
||||
|
||||
sed -n 's/Package: \(kernel-image-2.4.*\)$/\1/p' \
|
||||
$MIRROR/dists/$CODENAME/main/binary-arm/Packages|tail -n5 \
|
||||
>> debian-installer+kernel-$DI_CODENAME
|
||||
zcat $MIRROR/dists/$CODENAME/main/binary-arm/Packages.gz | \
|
||||
sed -n 's/Package: \(kernel-image-2.4.*\)$/\1/p' | \
|
||||
tail -n5 \
|
||||
>> debian-installer+kernel-$DI_CODENAME
|
||||
|
||||
cat >> debian-installer+kernel-$DI_CODENAME << EOF
|
||||
#endif
|
||||
|
|
|
@ -25,7 +25,7 @@ EOF
|
|||
my @common_excludes = read_exclude("exclude-udebs");
|
||||
|
||||
foreach my $arch (@ARCHES) {
|
||||
my $packagefile="$ENV{MIRROR}/dists/$ENV{DI_CODENAME}/main/debian-installer/binary-$arch/Packages";
|
||||
my $packagefile="$ENV{MIRROR}/dists/$ENV{DI_CODENAME}/main/debian-installer/binary-$arch/Packages.gz";
|
||||
unless (-f $packagefile) {
|
||||
print "Missing package file for arch $arch.\n";
|
||||
next;
|
||||
|
@ -35,7 +35,7 @@ foreach my $arch (@ARCHES) {
|
|||
my @exclude = @common_excludes;
|
||||
push @exclude, read_exclude("exclude-udebs-$arch")
|
||||
if -e exclude_path("exclude-udebs-$arch");
|
||||
UDEB: foreach my $udeb (map { chomp; $_ } `grep-dctrl -n -s Package '' $packagefile`) {
|
||||
UDEB: foreach my $udeb (map { chomp; $_ } `zcat $packagefile | awk '/^Package:/ {print $2}'`) {
|
||||
foreach my $pattern (@exclude) {
|
||||
if ($udeb =~ /^$pattern$/) {
|
||||
next UDEB;
|
||||
|
|
Loading…
Reference in New Issue