Received: (at submit) by bugs.debian.org; 29 Mar 1997 08:25:53 +0000 Received: (qmail 8044 invoked from network); 29 Mar 1997 08:25:38 -0000 Received: from pm8-47.flinet.com (HELO ohiox.haw.org) (ioannis@208.14.24.47) by master.debian.org with SMTP; 29 Mar 1997 08:25:11 -0000 Received: (from ioannis@localhost) by ohiox.haw.org (8.8.4/8.8.4) id DAA01318; Sat, 29 Mar 1997 03:19:54 -0500 Date: Sat, 29 Mar 1997 03:19:54 -0500 From: ioannis@flinet.com Message-Id: <199703290819.DAA01318@ohiox.haw.org> To: ioannis@flinet.com, submit@bugs.debian.org Subject: dpkg does not remove empty dirs Package: dpkg Version: 1.4.0.8 dpkg sometimes fails to remove empty directories. Few months ago, in a cfengin bug report, I documented a similar behavior with a slightly older dpkg vervion ( the one released with Debian 1.2 ) At that time, the cfengine maintainer explained that this is a dpkg bug which was fixed long ago. This is the output I encountered today: % dpkg --purge mirror (Reading database ... 16221 files and directories currently installed.) Removing mirror ... dpkg - warning: while removing mirror, directory `/etc/mirror' not empty so not removed. Purging configuration files for mirror ... % ls -la /etc/mirror/ total 4 drwxr-xr-x 2 root root 1024 Mar 29 02:37 . drwxr-xr-x 34 root root 3072 Mar 29 02:24 .. % % dpkg -i mirror_2.8-9.deb (Reading database ... 16221 files and directories currently installed.) Preparing to replace mirror 2.8-9 (using mirror_2.8-9.deb) ... Unpacking replacement mirror ... Setting up mirror (2.8-9) ... % dpkg --purge mirror (Reading database ... 16221 files and directories currently installed.) Removing mirror ... dpkg - warning: while removing mirror, directory `/etc/mirror/mm' not empty so not removed. dpkg - warning: while removing mirror, directory `/etc/mirror/packages' not empty so not removed. dpkg - warning: while removing mirror, directory `/etc/mirror' not empty so not removed. Purging configuration files for mirror ... -- System Information Debian Release: 1.2 Kernel Version: Linux ohiox 2.0.27 #2 Tue Jan 21 18:16:26 EST 1997 i486 Versions of the packages dpkg depends on: libc5 Version: 5.4.20-1 ncurses3.0 Version: 1.9.9e-1