[debsums] 33/184: Simplify the cronjob based on Loïc Minier's comment on Bug#88951
Axel Beckert
abe at deuxchevaux.org
Mon Mar 2 21:21:16 UTC 2015
This is an automated email from the git hooks/post-receive script.
abe pushed a commit to branch master
in repository debsums.
commit 12e9e06c7955060257a90bf3a30da8656ac3e3f9
Author: Francois Marier <francois at debian.org>
Date: Thu Sep 25 13:00:17 2008 +1200
Simplify the cronjob based on Loïc Minier's comment on Bug#88951
---
debian/changelog | 2 +-
debian/debsums.cron.daily | 13 ++-----------
2 files changed, 3 insertions(+), 12 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 5d2d76e..fbecad6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,7 +2,7 @@ debsums (2.0.38) UNRELEASED; urgency=low
* Fix the cronjob when the ignore file is empty or missing (closes: #499532)
- -- Francois Marier <francois at debian.org> Sat, 20 Sep 2008 14:51:49 +1200
+ -- Francois Marier <francois at debian.org> Thu, 25 Sep 2008 13:00:12 +1200
debsums (2.0.37) unstable; urgency=low
diff --git a/debian/debsums.cron.daily b/debian/debsums.cron.daily
index c0be010..669f60e 100755
--- a/debian/debsums.cron.daily
+++ b/debian/debsums.cron.daily
@@ -1,20 +1,11 @@
#!/bin/sh
debsums="/usr/bin/debsums"
+ignorefile="/etc/debsums-ignore"
[ -x $debsums ] || exit 0
-debsumscmd="$debsums -cs"
-
-ignorefile="/etc/debsums-ignore"
-ignorelist="`cat $ignorefile 2> /dev/null`"
-
-if [ "z$ignorelist" = "z" ] ; then
- # The ignore list is empty
- $debsumscmd
-else
- $debsumscmd 2>&1 | egrep -v "$ignorelist"
-fi
+$debsums -cs 2>&1 | egrep -vf "$ignorefile"
# Exit with a normal status code even if errors (which could be ignored) were found
exit 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/debsums.git
More information about the Pkg-perl-cvs-commits
mailing list