diff --git a/autoscripts/preinst-pycentral-clean b/autoscripts/preinst-pycentral-clean index 72cfa8e5e5ca58fe4f1c49b80d2a37bb5ae15b0c..2446a14f39161828b302073c7748208adf21cebe 100644 --- a/autoscripts/preinst-pycentral-clean +++ b/autoscripts/preinst-pycentral-clean @@ -1,9 +1,6 @@ # make sure python-central files are removed before new package is installed -case "$1" in - install|upgrade) - if [ -f /var/lib/pycentral/#PACKAGE#.pkgremove ] - then - pycentral pkgremove #PACKAGE# - rm -f /var/lib/pycentral/#PACKAGE#.pkgremove - fi -esac +if [ "$1" = upgrade ] && [ -f /var/lib/pycentral/#PACKAGE#.pkgremove ] +then + pycentral pkgremove #PACKAGE# + rm -f /var/lib/pycentral/#PACKAGE#.pkgremove +fi