Re: Removing conffiles AND directories in /etc

2014-10-26 Thread Henrique de Moraes Holschuh
On Sun, 26 Oct 2014, Jakub Wilk wrote: > * Henrique de Moraes Holschuh , 2014-10-26, 10:57: > >"rmdir >/etc/foo/bar/ >/dev/null 2>&1 || true" is always a safe > >operation... > > Instead of ignoring (and hiding) all errors, it's better use > --ignore-fail-on-non-empty. That's a GNU coreutils-ism

Re: Removing conffiles AND directories in /etc

2014-10-26 Thread Jakub Wilk
* Henrique de Moraes Holschuh , 2014-10-26, 10:57: "rmdir >/etc/foo/bar/ >/dev/null 2>&1 || true" is always a safe operation... Instead of ignoring (and hiding) all errors, it's better use --ignore-fail-on-non-empty. -- Jakub Wilk -- To UNSUBSCRIBE, email to debian-devel-requ...@lists.deb

Re: Removing conffiles AND directories in /etc

2014-10-26 Thread Henrique de Moraes Holschuh
On Sun, 26 Oct 2014, Santiago Vila wrote: > > So, dpkg-maintscripthelper seems to do "Removing obsolete conffile" > > after dpkg tries to delete old directories, so dpkg fails. > > > > I'd be surprised if I were the first to encounter this problem: what is > > the appropriate and clean way to get

Re: Removing conffiles AND directories in /etc

2014-10-26 Thread Santiago Vila
On Sat, Oct 25, 2014 at 12:42:01PM +0200, Enrico Zini wrote: > Hello, > > I have a bug (#764235) in which after I remove all conffiles in > /etc/debtags with dpkg-maintscripthelper, the /etc/debtags directory > itself is left around. > > This is what happens: > > # dpkg -i debtags_1.12.2_amd64

Removing conffiles AND directories in /etc

2014-10-25 Thread Enrico Zini
Hello, I have a bug (#764235) in which after I remove all conffiles in /etc/debtags with dpkg-maintscripthelper, the /etc/debtags directory itself is left around. This is what happens: # dpkg -i debtags_1.12.2_amd64.deb (Reading database ... 370467 files and directories currently installed.