On Wednesday 08 February 2012 21:04:26 gregor herrmann wrote:
> On Wed, 08 Feb 2012 19:21:16 +0100, Pali Rohár wrote:
> > > I can install and uninstall the file just fine using the debian package
> > > I've constructed locally.  When installing the app from the Extras-Devel
> > > repository, however, the application manager can place the file into
> > > /etc/sudoers.d, but seems unable to remove it when uninstalling.
> >
> > Try to run apt-get remove <package> in xterm. This is what application
> > manager doing... Also see error in application manager log.
>
> apt-get remove without --purge won't remove conffiles, which would
> explain why /etc/sudoers.d/foo is still there ...
>
> And that's on purpose at least in Debian. If HAM can't be told to
> purge a package there's not much that can be done (short of using
> brute force in the postrm maintainer script. Ehh, this sounds ugly.).
>
>
> Cheers,
> gregor

You can create sudoers.d file in postinst file and remove it in postrm.
echo "..." > /etc/sudoers.d/...

Or you can force debhelper to not add that sudoers file to conffiles.

--
Pali Rohár
pali.ro...@gmail.com

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
maemo-developers mailing list
maemo-developers@maemo.org
https://lists.maemo.org/mailman/listinfo/maemo-developers

Reply via email to