Hi,

I attach a patch to fix this bug.
In debian/gup.postrm is only remove directories but user already exists.

diff -Nru gup-0.5.14/debian/gup.postinst gup-0.5.14.1/debian/gup.postinst
--- gup-0.5.14/debian/gup.postinst      2013-04-01 10:59:34.000000000 +0700
+++ gup-0.5.14.1/debian/gup.postinst    2013-05-26 20:04:14.000000000 +0700
@@ -5,6 +5,10 @@
 if ! getent passwd gup >/dev/null; then
   adduser --system --home /var/lib/gup/ --ingroup news \
     --disabled-password --gecos "Group Update Program" gup
+else
+  delgroup --quiet --system gup
+  adduser --system --home /var/lib/gup/ --ingroup news \
+    --disabled-password --gecos "Group Update Program" gup
 fi

 if [ ! -d /var/lib/gup/default ]; then
diff -Nru gup-0.5.14/debian/gup.postrm gup-0.5.14.1/debian/gup.postrm
--- gup-0.5.14/debian/gup.postrm        2013-04-01 12:41:51.000000000 +0700
+++ gup-0.5.14.1/debian/gup.postrm      2013-05-26 19:53:07.000000000 +0700
@@ -2,6 +2,7 @@

 if [ "$1" = purge ]; then
   rm -rf /var/lib/gup/ /etc/gup.conf /var/log/gup/ >/dev/null
+  delgroup --quiet --system gup
 fi

 #DEBHELPER#

Regrads,

-- 
 ปรัชญ์ พงษ์พานิช
 Prach Pongpanich

Attachment: fix-707938.diff
Description: Binary data

Reply via email to