[Pkg-opennebula-devel] Bug#681567: opennebula-common: fails to install, purge, and install again

gregor herrmann gregoa at debian.org
Sat Jul 28 16:23:19 UTC 2012


Control: tag 681567 + patch

On Sat, 14 Jul 2012 12:42:03 +0200, Andreas Beckmann wrote:

> during a test with piuparts I noticed your package failed to install,
> remove+purge, and install again.
 
> This is often a problem with the home directory of a system user:
> the user is not deleted during purge (which is fine), but the home
> directory is removed. Since the user already exists on the next
> installation, adduser won't recreate the home.

That's exactly the case here: in postrm/purge the user account is not
deleted but just disabled; but the home directory is deleted. So at
the second install the directory is not created.

Since there's already a codepath to deal with an exisiting user, I
suggest to (re)create the directory there --> attached patch.


Any comments before I NMU?

 
Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Page&Plant: House Of Love
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 681567.diff
Type: text/x-diff
Size: 1245 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-opennebula-devel/attachments/20120728/0962d18f/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-opennebula-devel/attachments/20120728/0962d18f/attachment.pgp>


More information about the Pkg-opennebula-devel mailing list