[27772] in Source-Commits

home help back first fref pref prev next nref lref last post

metrics commit: Check for install-pkg script before running it

daemon@ATHENA.MIT.EDU (Jonathan D Reed)
Tue Mar 4 12:58:28 2014

Date: Tue, 4 Mar 2014 12:58:21 -0500
From: Jonathan D Reed <jdreed@MIT.EDU>
Message-Id: <201403041758.s24HwLVm019959@drugstore.mit.edu>
To: source-commits@MIT.EDU

https://github.com/mit-athena/metrics/commit/e5070fce4d08d5fb5fb25b4c7a77081118c9ee22
commit e5070fce4d08d5fb5fb25b4c7a77081118c9ee22
Author: Jonathan Reed <jdreed@mit.edu>
Date:   Thu Oct 3 14:05:06 2013 -0400

    Check for install-pkg script before running it
    
    In the 90debathena-metrics apt.conf snippet, check that the
    Pre-Install-Pkg command actually exists before running it, to
    avoid printing an annoying warning message after the package
    is removed.  (Trac: #544)

 debian/90debathena-metrics |    2 +-
 debian/changelog           |    6 ++++++
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/debian/90debathena-metrics b/debian/90debathena-metrics
index 6d4224b..f747072 100644
--- a/debian/90debathena-metrics
+++ b/debian/90debathena-metrics
@@ -1 +1 @@
-DPkg::Pre-Install-Pkgs {"/usr/lib/debathena-metrics/install-pkg || :";};
\ No newline at end of file
+DPkg::Pre-Install-Pkgs {"test -x /usr/lib/debathena-metrics/install-pkg && /usr/lib/debathena-metrics/install-pkg || :";};
diff --git a/debian/changelog b/debian/changelog
index 81d1244..61b1d49 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+debathena-metrics (1.9) unstable; urgency=low
+
+  * Only run the install-pkg command if it exists (Trac: #544)
+
+ -- Jonathan Reed <jdreed@mit.edu>  Thu, 03 Oct 2013 14:04:20 -0400
+
 debathena-metrics (1.8) unstable; urgency=low
 
   * Add git-buildpackage configuration

home help back first fref pref prev next nref lref last post