Use codenames for suites instead of alias names where possible.
archives="us security amd64 gnuab backports volatile"
sections="main contrib non-free"
parts="$sections"
-suites="oldstable oldstable-volatile oldstable-backports stable etch-m68k stable-volatile stable-backports testing unstable experimental"
+suites="sarge sarge-volatile sarge-backports etch etch-m68k etch-volatile etch-backports lenny sid experimental"
priorities="required important standard optional extra"
dists="$suites"
architectures="alpha amd64 arm armel hppa hurd-i386 i386 ia64 kfreebsd-i386 kfreebsd-amd64 m68k mips mipsel powerpc s390 sparc"
-arch_oldstable="alpha amd64 arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc"
-arch_stable="alpha amd64 arm hppa i386 ia64 mips mipsel powerpc s390 sparc"
-arch_testing="${arch_stable}"
-arch_unstable="${arch_oldstable} armel hurd-i386 kfreebsd-i386 kfreebsd-amd64"
-arch_experimental="${arch_unstable}"
-arch_testing_proposed_updates="${arch_testing}"
-arch_stable_proposed_updates="${arch_stable}"
+arch_sarge="alpha amd64 arm hppa i386 ia64 m68k mips mipsel powerpc s390 sparc"
+arch_etch="alpha amd64 arm hppa i386 ia64 mips mipsel powerpc s390 sparc"
+arch_lenny="${arch_etch}"
+arch_sid="${arch_sarge} armel hurd-i386 kfreebsd-i386 kfreebsd-amd64"
+arch_experimental="${arch_sid}"
+arch_lenny_proposed_updates="${arch_lenny}"
+arch_etch_proposed_updates="${arch_etch}"
# Miscellaneous
#
# security archive
#
-for dist in oldstable stable testing
+for dist in sarge etch lenny
do
echo "retrieve Release(.gpg) $dist"
test -d security/${dist} || mkdir -p security/${dist}
#
arch=amd64
-for dist in oldstable
+for dist in sarge
do
echo "retrieve Release(.gpg) $dist"
test -d amd64/${dist} || mkdir -p amd64/${dist}
# backports archive
#
-for dist in oldstable
+for dist in sarge etch
do
echo "retrieve Release(.gpg) $dist-backports"
test -d backports/${dist}-backports || mkdir -p backports/${dist}-backports
(cd backports/${dist}-backports &&
- wget -q -N ${backports_ftpsite}/dists/sarge-backports/Release &&
- wget -q -N ${backports_ftpsite}/dists/sarge-backports/Release.gpg )
+ wget -q -N ${backports_ftpsite}/dists/${dist}-backports/Release &&
+ wget -q -N ${backports_ftpsite}/dists/${dist}-backports/Release.gpg )
foo=\$arch_${dist//-/_}
for arch in `eval echo $foo`
echo retrieve Packages $dist-backports/$part/$arch
test -d backports/${dist}-backports/${part}/binary-${arch} || mkdir -p backports/${dist}-backports/${part}/binary-${arch}
(cd backports/${dist}-backports/${part}/binary-${arch} &&
- wget -q -N ${backports_ftpsite}/dists/sarge-backports/${part}/binary-${arch}/Packages.gz)
+ wget -q -N ${backports_ftpsite}/dists/${dist}-backports/${part}/binary-${arch}/Packages.gz)
done
echo retrieve Contents $dist-backports/$arch
(cd backports/${dist}-backports &&
- wget -q -N ${backports_ftpsite}/dists/sarge-backports/Contents-${arch}.gz)
+ wget -q -N ${backports_ftpsite}/dists/${dist}-backports/Contents-${arch}.gz)
done
for part in ${parts}
do
echo retrieve Sources $dist-backports/$part
test -d backports/${dist}-backports/${part}/source || mkdir -p backports/${dist}-backports/${part}/source
(cd backports/${dist}-backports/${part}/source &&
- wget -q -N ${backports_ftpsite}/dists/sarge-backports/${part}/source/Sources.gz)
+ wget -q -N ${backports_ftpsite}/dists/${dist}-backports/${part}/source/Sources.gz)
done
done
#
architectures="armel kfreebsd-i386 kfreebsd-amd64"
-for dist in unstable experimental
+for dist in sid experimental
do
echo "retrieve Release(.gpg) $dist"
test -d gnuab/${dist} || mkdir -p gnuab/${dist}
# volatile archive
#
-for dist in oldstable stable
+for dist in sarge etch
do
echo "retrieve Release(.gpg) $dist-volatile"
test -d volatile/${dist}-volatile || mkdir -p volatile/${dist}-volatile
if [ -z "${localdir}" ]
then
echo using remote mirror
- for dist in unstable
+ for dist in sid
do
for part in main
do
done
else
echo using local mirror
- for dist in unstable
+ for dist in sid
do
for part in main
do
packagesdir=${filesdir}/packages
test -d ${packagesdir} || mkdir -p ${packagesdir}
-LANG=C cat ${filesdir}/db/package_names_unstable.txt \
- | sort | uniq > ${packagesdir}/package_names_unstable.$(date -I)
+LANG=C cat ${filesdir}/db/package_names_sid.txt \
+ | sort | uniq > ${packagesdir}/package_names_sid.$(date -I)
LANG=C cat ${filesdir}/db/source_names_unstable.txt \
- | sort | uniq > ${packagesdir}/source_names_unstable.$(date -I)
+ | sort | uniq > ${packagesdir}/source_names_sid.$(date -I)
cd $topdir
-./bin/newpkg_info unstable
+./bin/newpkg_info sid
my %SUITES_ALIAS = ( sarge => 'oldstable',
etch => 'stable',
lenny => 'testing',
- sid => 'unstable', );
+ sid => 'unstable',
+ oldstable => 'sarge',
+ stable => 'etch',
+ testing => 'lenny',
+ unstable => 'sid', );
my %SECTIONS = map { $_ => 1 } @SECTIONS;
my %ARCHIVES = map { $_ => 1 } @ARCHIVES;
my %ARCHITECTURES = map { $_ => 1 } (@ARCHITECTURES, 'all', 'any');