Bug#261090: misleading behavior of dpkg
Package: dpkg
Version: 1.9.21 (i386)
Severity: Small
Seems that dpkg cannot tell the difference between a non-existant and a
not-empty directory:
brat_bori:/home/leszek$ dselect --expert
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
xfce*
0 packages upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives. After unpacking 10.1MB will be freed.
Do you want to continue? [Y/n]
(Reading database ... 51775 files and directories currently installed.)
Removing xfce ...
dpkg - warning: while removing xfce, directory `/etc/X11/xfce' not empty
so not removed.
Purging configuration files for xfce ...
Do you want to erase any previously downloaded .deb files? [Y/n]
Press enter to continue.
brat_bori:/home/leszek$ cd /etc/X11/xfce
bash: cd: /etc/X11/xfce: No such file or directory
dpkg warns about not being able to remove '/etc/X11/xfce' because it is
not empty, while the directory does not exist at all. IMHO, it would be
much better if dpkg would report such failures *only* when the dir is
not-empty.
best,
Leszek
Reply to: