On Sat, 2006-08-12 at 23:25 +0200, Julien Danjou wrote:
> Package: buildbot
> Version: 0.7.3-3
> Severity: serious
> 
> I simply can not to purge buildbot. I have added set +x in postrm:
> 
> (Reading database ... 192074 files and directories currently installed.)
> Removing buildbot ...
> Purging configuration files for buildbot ...
> + set -e
> + case "$1" in
> + getent passwd buildbot
> + deluser --quiet --system buildbot
> dpkg: error processing buildbot (--purge):
>  subprocess post-removal script returned error exit status 1
> Errors were encountered while processing:
>  buildbot
> 
> Actually, it seems that removing the --system fix the problem.
> The *real* problem I guess is that --system is missing in the installation
> script. Currently my buildbot has a user UID (1005)

Yes. I've tested creating the user with the --system flag and purging
therefore, which ran out smoothly.

I'm attaching here the fix and uploading an NMU. I've tested it inside
the pbuilder chroot and worked perfectly.

-- 
David Moreno Garza                                <[EMAIL PROTECTED]>
 http://www.damog.net/                     <[EMAIL PROTECTED]>

Emancipate yourself from mental slavery...


--- /tmp/buildbot-0.7.3/debian/postinst 2006-08-13 15:13:29.000000000 -0500
+++ buildbot-0.7.3/debian/postinst      2006-08-13 14:45:19.000000000 -0500
@@ -8,6 +8,7 @@
            echo "Creating/updating buildbot user account..."
            adduser --home /var/run/buildbot \
                --gecos "BuildBot system user" \
+               --system \
                --quiet --disabled-password buildbot
        fi
     ;;

Reply via email to