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

2012-07-28 Thread Damien Raude-Morvan

Hi gregor,

Le 28/07/2012 18:23, gregor herrmann a écrit :

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?


I haven't had time, yet, to work on opennebula package recently but your 
patch seems fine. Go fo NMU! I'll merge it back latter into git repository.


Cheers,
--
Damien


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



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

2012-07-28 Thread gregor herrmann
On Sat, 28 Jul 2012 23:21:16 +0200, Damien Raude-Morvan wrote:

 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?
 I haven't had time, yet, to work on opennebula package recently but
 your patch seems fine. Go fo NMU! I'll merge it back latter into git
 repository.

Thanks for your quick feedback!

Building and uploading shortly.


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: Cássia Eller: Por Enquanto


signature.asc
Description: Digital signature