[Debian-l10n-commits] [ddtp] 01/04: Use the gz files rather than bz2 now that bz2 has been removed.
Martijn van Oosterhout
kleptog-guest at moszumanska.debian.org
Sat Jan 18 16:06:00 UTC 2014
This is an automated email from the git hooks/post-receive script.
kleptog-guest pushed a commit to branch master
in repository ddtp.
commit 7354497c24559afaa1a598944a0c3b39128988cf
Author: Martijn van Oosterhout <kleptog at svana.org>
Date: Sat Jan 18 15:57:37 2014 +0000
Use the gz files rather than bz2 now that bz2 has been removed.
---
Packages2packages_tb.sh | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/Packages2packages_tb.sh b/Packages2packages_tb.sh
index b40fbdd..8f52a8a 100755
--- a/Packages2packages_tb.sh
+++ b/Packages2packages_tb.sh
@@ -31,14 +31,14 @@ do
file="Packages/Packages_${distribution}_${part}_${arch}"
echo `date`: ${distribution}/${part}/$arch
- [ -s $file.bz2 ] && mv $file.bz2 Packages/Packages.bz2
+ [ -s $file.gz ] && mv $file.gz Packages/Packages.gz
wget -P Packages -q -m -nd \
- http://ftp.de.debian.org/debian/dists/${distribution}/${part}/binary-$arch/Packages.bz2 && {
- echo `date`: Packages file downloaded
+ http://ftp.de.debian.org/debian/dists/${distribution}/${part}/binary-$arch/Packages.gz && {
+ echo `date`: http://ftp.de.debian.org/debian/dists/${distribution}/${part}/binary-$arch/Packages.gz file downloaded
} || {
- echo `date`: Failed to download ${distribution}/${part}/$arch 1>&2
+ echo `date`: Failed to download ${distribution}/${part}/$arch "(http://ftp.de.debian.org/debian/dists/${distribution}/${part}/binary-$arch/Packages.gz)" 1>&2
}
- [ -s Packages/Packages.bz2 ] && mv Packages/Packages.bz2 $file.bz2
+ [ -s Packages/Packages.gz ] && mv Packages/Packages.gz $file.gz
done
done
done
@@ -53,7 +53,7 @@ do
for arch in $DISTS
do
- file="Packages/Packages_${distribution}_${part}_${arch}.bz2"
+ file="Packages/Packages_${distribution}_${part}_${arch}.gz"
# Skip files older than 2 days...
if [ -n "$(find "$file" -mtime +2)" ] ; then
@@ -61,7 +61,7 @@ do
continue
fi
[ -f $file ] && echo -n `date`: $file
- [ -f $file ] && bzcat $file | $INPORT2DB
+ [ -f $file ] && zcat $file | $INPORT2DB
[ -f $file ] || echo no $file
done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-l10n/ddtp.git
More information about the Debian-l10n-commits
mailing list