[Pkg-clamav-commits] [clamav-unofficial-sigs] 07/08: Ignore a missing purge file

Paul Wise pabs at moszumanska.debian.org
Wed Nov 27 07:58:01 UTC 2013


This is an automated email from the git hooks/post-receive script.

pabs pushed a commit to branch master
in repository clamav-unofficial-sigs.

commit 1816f1c998ee826d3718667e6846ef2ee85c68dc
Author: Paul Wise <pabs at debian.org>
Date:   Wed Nov 27 15:28:48 2013 +0800

    Ignore a missing purge file
---
 debian/changelog | 1 +
 debian/postrm    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index e3a3a75..a54e7bf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,7 @@ clamav-unofficial-sigs (3.7.2-1) UNRELEASED; urgency=low
   * Bump Standards-Version, no changes needed
   * Simplify the dirs file slightly
   * Rewrite and update the copyright file to copyright-format 1.0
+  * Ignore a missing purge file
 
  -- Paul Wise <pabs at debian.org>  Tue, 27 Aug 2013 18:50:28 +0200
 
diff --git a/debian/postrm b/debian/postrm
index 0f2495a..02ae774 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -4,7 +4,7 @@ set -e
 purge=/var/lib/clamav-unofficial-sigs/purge.txt
 
 if [ "$1" = purge ] ; then
-	for file in `cat $purge` ; do
+	for file in `cat $purge 2>/dev/null` ; do
 		rm -f -- "$file"
 	done
 	for dir in configs gpg-key ; do

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-clamav/clamav-unofficial-sigs.git



More information about the Pkg-clamav-commits mailing list