work around rmdir failing if the directories are already gone 2.3.2+dfsg4-14
authormirabilos <tg@debian.org>
Fri, 5 Mar 2021 16:58:27 +0000 (17:58 +0100)
committermirabilos <mirabilos@evolvis.org>
Fri, 5 Mar 2021 16:58:27 +0000 (17:58 +0100)
can’t reproduce it but anbe filed #984592…

debian/changelog
debian/musescore-common.prerm

index 4a06794..d99593a 100644 (file)
@@ -1,3 +1,9 @@
+musescore2 (2.3.2+dfsg4-14) unstable; urgency=medium
+
+  * Fix possible error cause in m-common.prerm (Closes: #984592)
+
+ -- Thorsten Glaser <tg@mirbsd.de>  Fri, 05 Mar 2021 17:57:30 +0100
+
 musescore2 (2.3.2+dfsg4-12) unstable; urgency=medium
 
   * Fix CFLAGS/CXXFLAGS extras to disable upstream-only warnings
index 83d2026..fcda58a 100644 (file)
@@ -21,6 +21,9 @@ set -e
 case $1 in
 (remove|deconfigure)
        # remove directories if they were created in postinst
+       # mkdir -p them first so that rmdir doesn’t fail if they don’t exist
+       mkdir -p \
+           /usr/share/sounds/sf2 /usr/share/sounds/sf3 /usr/share/sounds/sfz
        rmdir --ignore-fail-on-non-empty \
            /usr/share/sounds/sf2 /usr/share/sounds/sf3 /usr/share/sounds/sfz
        ;;