[pkg-perl-tools] 02/03: examples/pbuilder-hooks/E10cleanup: use dpkg-vendor to check for Ubuntu
gregor herrmann
gregoa at debian.org
Sat Sep 9 16:21:30 UTC 2017
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository pkg-perl-tools.
commit 8060338d7d5666865875447cd76d7337545db4f0
Author: gregor herrmann <gregoa at debian.org>
Date: Sat Sep 9 18:17:34 2017 +0200
examples/pbuilder-hooks/E10cleanup: use dpkg-vendor to check for Ubuntu
instead of grepping /etc/lsb-release.
---
examples/pbuilder-hooks/E10cleanup | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/examples/pbuilder-hooks/E10cleanup b/examples/pbuilder-hooks/E10cleanup
index e62b5e9..576a3f4 100755
--- a/examples/pbuilder-hooks/E10cleanup
+++ b/examples/pbuilder-hooks/E10cleanup
@@ -28,8 +28,8 @@ if pkgavail libfile-fcntllock-perl ; then
fi
UBUNTU=
-if [ -e /etc/lsb-release ] && grep -q Ubuntu /etc/lsb-release ; then
- UBUNTU="gpgv gnupg ubuntu-keyring"
+if dpkg-vendor --derives-from Ubuntu ; then
+ UBUNTU="ubuntu-keyring"
fi
apt-get -y install debfoster
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git
More information about the Pkg-perl-cvs-commits
mailing list