On Thu, Mar 17, 2011 at 06:28:32PM +0200, Peter Pentchev wrote:
> On Thu, Mar 17, 2011 at 05:21:55PM +0100, Mathieu Malaterre wrote:
> > Dear mentors,
> > 
> >   I am trying to fix the following errors on the dcmtk package:
> > 
> > 0m18.3s ERROR: FAIL: Package purging left files on system:
> >   /var/lib/dcmtk     not owned
> >   /var/lib/dcmtk/db  not owned
> > 
> > /var/lib/dcmtk/db is a special directory. This is the location where
> > incoming DICOM files are stored on disk. So this directory should IMHO
> > only be removed when the user really understand what it does. when and
> > how should I remove this directory ?
> 
> Add a postrm script that checks if the user is really purging your
> package (check if [ "$1" = 'purge' ]) and, if so, remove the directory,
> assuming that the user who specifically issued a purge request really
> understands what she's doing to the package and all of its data files :)

And since it might be precious data, you could also check whether the
directory is empty and not remove it in this case, but issue a warning
saying why it was left on the system.

Michael



-- 
Michael Hanke
http://mih.voxindeserto.de


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/20110317174026.GC22586@meiner

Reply via email to