[Pkg-alsa-devel] Bug#673679: Bug#673679: alsa-base: rmdir: failed to remove `/etc/apm/suspend.d': No such file or directory

Helmar Gerloni helmar at gerloni.net
Thu Jun 21 20:28:00 UTC 2012


Fix could be:

--- alsa-base.preinst_1.0.25+2  2012-05-20 15:06:49.000000000 +0200
+++ alsa-base.preinst   2012-06-21 22:07:17.000000000 +0200
@@ -7,10 +7,9 @@
        rm -f \
                /etc/apm/suspend.d/??alsa \
                /etc/apm/resume.d/??alsa
-       rmdir --ignore-fail-on-non-empty \
-               /etc/apm/suspend.d \
-               /etc/apm/resume.d \
-               /etc/apm
+       [ -d /etc/apm/suspend.d ] && rmdir --ignore-fail-on-non-empty /etc/apm/suspend.d
+       [ -d /etc/apm/resume.d ]  && rmdir --ignore-fail-on-non-empty /etc/apm/resume.d
+       [ -d /etc/apm ]           && rmdir --ignore-fail-on-non-empty /etc/apm
 fi
 
 #DEBHELPER#

Regards,   Helmar.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alsa-base.preinst_1.0.25+2_673679.patch
Type: text/x-patch
Size: 564 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-alsa-devel/attachments/20120621/9cb02aff/attachment.bin>


More information about the Pkg-alsa-devel mailing list