ensure alternatives’ parent directories exist
authormirabilos <t.glaser@tarent.de>
Sat, 5 Jan 2019 09:35:01 +0000 (10:35 +0100)
committermirabilos <mirabilos@evolvis.org>
Sat, 5 Jan 2019 09:35:01 +0000 (10:35 +0100)
debian/musescore-general-soundfont-lossless.postinst
debian/musescore-general-soundfont-lossless.prerm

index 4a50325..e4033d6 100644 (file)
@@ -24,6 +24,7 @@ set -e
 
 case $1 in
 configure)
+       mkdir -p /usr/share/sounds/sf3
        update-alternatives --force --install \
            /usr/share/sounds/sf3/MuseScore_General.sf3 MuseScore_General.sf3 \
            /usr/share/sounds/sf2/MuseScore_General_Full.sf2 55
index 735411d..ca1cfe0 100644 (file)
@@ -22,6 +22,7 @@ case $1 in
 remove|deconfigure)
        update-alternatives --remove MuseScore_General.sf3 \
            /usr/share/sounds/sf2/MuseScore_General_Full.sf2
+       rmdir --ignore-fail-on-non-empty /usr/share/sounds/sf3
        ;;
 
 upgrade|failed-upgrade)