Merge branch 'rochade'
[alioth/musescore.git] / debian / musescore3-common.postinst
index 575978f..48f431e 100644 (file)
@@ -9,32 +9,35 @@ set -e
 # are no circular dependencies, configured.
 #
 # * old-postinst "abort-upgrade" $new_version
-# * conflictors-postinst "abort-remove" "in-favour" $package
+# * old-postinst "abort-remove"
+# * conflictors-postinst "abort-remove" "in-favour" $new_package
 #      $new_version
-# * postinst "abort-remove"
 # * deconfigureds-postinst "abort-deconfigure" "in-favour"
-#      $failed_install_package $fip_version ["removing"
-#      $conflicting_package $cp_version]
+#      $failed_install_package $fip_version            # new-package
+#      ["removing" $conflicting_package $cp_version]   # old-package
 # The package is unpacked; all dependencies are at least Half-Installed,
 # previously been configured, and not removed. In some error situations,
 # dependencies may not be even fully unpacked.
 #
 # * postinst "triggered" "${triggers[*]}"
 # For trigger-only calls, i.e. if "configure" is not called.
+#
+# * new-postinst "reconfigure" [$most_recently_configured_version](?)
+# Treat this as just like "configure" for a future extension by debconf.
 
 case $1 in
-configure|abort-upgrade|abort-remove|abort-deconfigure)
+(configure|reconfigure|abort-upgrade|abort-remove|abort-deconfigure)
        # avoid adequate warnings due to broken symlinks
        # also points the admin to soundfont install location
        mkdir -p \
            /usr/share/sounds/sf2 /usr/share/sounds/sf3 /usr/share/sounds/sfz
        ;;
 
-triggered)
+(triggered)
        ;;
 
-*)
-       echo >&2 "postinst called with unknown subcommand '$1'"
+(*)
+       echo >&2 "E: postinst called with unknown subcommand '$1'"
        exit 1
        ;;
 esac