mirror of
https://github.com/PapirusDevelopmentTeam/papirus-icon-theme.git
synced 2024-10-18 09:10:34 -04:00
Minor changes to maintainer scripts
This commit is contained in:
parent
ead8cd6953
commit
087b95d2ed
3 changed files with 6 additions and 4 deletions
2
debian/postinst
vendored
2
debian/postinst
vendored
|
@ -19,7 +19,7 @@ set -e
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
readonly PREV_VERSION="$2"
|
true
|
||||||
;;
|
;;
|
||||||
abort-upgrade|abort-remove|abort-deconfigure)
|
abort-upgrade|abort-remove|abort-deconfigure)
|
||||||
exit 0
|
exit 0
|
||||||
|
|
4
debian/preinst
vendored
4
debian/preinst
vendored
|
@ -15,7 +15,7 @@ set -e
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
install|upgrade)
|
install|upgrade)
|
||||||
readonly PREV_VERSION="$2"
|
true
|
||||||
;;
|
;;
|
||||||
abort-upgrade)
|
abort-upgrade)
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -45,6 +45,8 @@ rm_symlink() {
|
||||||
rm -f "$1"
|
rm -f "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PREV_VERSION="$2"
|
||||||
|
|
||||||
# Breaking changes: PapirusDevelopmentTeam/papirus-icon-theme@20bfc4a
|
# Breaking changes: PapirusDevelopmentTeam/papirus-icon-theme@20bfc4a
|
||||||
# https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/issues/370
|
# https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/issues/370
|
||||||
if dpkg --compare-versions "$PREV_VERSION" lt "20170304"; then
|
if dpkg --compare-versions "$PREV_VERSION" lt "20170304"; then
|
||||||
|
|
4
debian/prerm
vendored
4
debian/prerm
vendored
|
@ -18,9 +18,9 @@ set -e
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
upgrade)
|
upgrade)
|
||||||
readonly NEW_VERSION="$2"
|
NEW_VERSION="$2"
|
||||||
# shellcheck disable=SC2016
|
# shellcheck disable=SC2016
|
||||||
readonly PREV_VERSION="$(dpkg-query -f='${Version}' --show papirus-icon-theme)"
|
PREV_VERSION="$(dpkg-query -f='${Version}' --show papirus-icon-theme)"
|
||||||
|
|
||||||
if dpkg --compare-versions "$PREV_VERSION" gt "$NEW_VERSION"; then
|
if dpkg --compare-versions "$PREV_VERSION" gt "$NEW_VERSION"; then
|
||||||
cat >&2 <<- EOF
|
cat >&2 <<- EOF
|
||||||
|
|
Loading…
Reference in a new issue