[dpkg] 142/192: debian: Remove ancient code recompressing alternatives database backups
Ximin Luo
infinity0 at debian.org
Tue Oct 17 11:04:11 UTC 2017
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch pu/reproducible_builds
in repository dpkg.
commit 6f4209e478c76f96b49def24e83db88ed88395d4
Author: Guillem Jover <guillem at debian.org>
Date: Sun Sep 24 18:16:10 2017 +0200
debian: Remove ancient code recompressing alternatives database backups
The code converted the backups from xz to gzip in the dpkg daily cron
job due to a short-lived change that compressed the database backups
in xz.
---
debian/changelog | 2 ++
debian/dpkg.cron.daily | 11 -----------
2 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 766dbd0..5c135ea 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -127,6 +127,8 @@ dpkg (1.19.0) UNRELEASED; urgency=medium
- Switch to debhelper compatibility level 10.
- Split alternatives logrotate into its own configuration file to help
downstreams and derivatives.
+ - Remove ancient code recompressing the alternatives database backups
+ from xz to gzip in the dpkg daily cron job.
* Test suite:
- Enable perlcritic Documentation::RequirePodSections and
Miscellanea::ProhibitTies.
diff --git a/debian/dpkg.cron.daily b/debian/dpkg.cron.daily
index c0aefb8..0a6b05e 100644
--- a/debian/dpkg.cron.daily
+++ b/debian/dpkg.cron.daily
@@ -25,17 +25,6 @@ if cd /var/backups ; then
# The alternatives database is independent from the dpkg database.
dbalt=alternatives
- # Switch the alternatives database backups from xz to gzip, as the latter
- # is Essential and we can rely on it being always present, using xz here
- # is not worth the trouble, disk space savings, or possible additional
- # dependencies.
- for dbseq in `seq 1 6` ; do
- dbfile=${dbalt}.tar.${dbseq}
- [ -e "${dbfile}.xz" ] || continue
- unxz ${dbfile}.xz
- gzip -9 $dbfile
- done
-
# XXX: Ideally we'd use --warning=none instead of discarding stderr, but
# as of GNU tar 1.27.1, it does not seem to work reliably (see #749307).
if ! test -e ${dbalt}.tar.0 ||
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git
More information about the Reproducible-commits
mailing list