Source: amule
Version: 2.3.1+git1a369e47-2
Author: Guillem Jover <guillem@debian.org>
Status: applied
Debbug: 769847
Description: Remove absolute path from dpkg-divert calls


diff --git a/debian/amule-utils.preinst b/debian/amule-utils.preinst
index e98ac37..b0496fd 100644
--- a/debian/amule-utils.preinst
+++ b/debian/amule-utils.preinst
@@ -2,7 +2,7 @@
 
 set -e
 
-DIVERSIONS=`env LC_ALL=C /usr/sbin/dpkg-divert --list | grep -E 'by amule(-utils)?$'` || true
+DIVERSIONS=`env LC_ALL=C dpkg-divert --list | grep -E 'by amule(-utils)?$'` || true
 
 if [ -n "$DIVERSIONS" ]; then
     echo "$DIVERSIONS" | while read diversion of FILE to DIVERTED by PACKAGE; do
diff --git a/debian/amule.preinst b/debian/amule.preinst
index e98ac37..b0496fd 100644
--- a/debian/amule.preinst
+++ b/debian/amule.preinst
@@ -2,7 +2,7 @@
 
 set -e
 
-DIVERSIONS=`env LC_ALL=C /usr/sbin/dpkg-divert --list | grep -E 'by amule(-utils)?$'` || true
+DIVERSIONS=`env LC_ALL=C dpkg-divert --list | grep -E 'by amule(-utils)?$'` || true
 
 if [ -n "$DIVERSIONS" ]; then
     echo "$DIVERSIONS" | while read diversion of FILE to DIVERTED by PACKAGE; do
