X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Ffunctions.sh;h=ef321d692cc05c9f093e6612e601739bb67de2f3;hb=01011c3d05d7338500acb42d7da17a3ba8ca63cd;hp=beccd14e98c893d8cf84daa638de9b0e408ce2f3;hpb=a57a0479c78051fa92ee6ba0b837a511e1c744d8;p=carnet-upgrade.git diff --git a/src/functions.sh b/src/functions.sh index beccd14..ef321d6 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -975,9 +975,11 @@ remove_skey () { } # remove unsupported php version +# but leave the configuration just in case remove_php4 () { - # leave the configuration just in case - pkgrm_only php4-common || true + if pkg php5-cn && pkg php4-common; then + pkgrm_only php4-common + fi } # check if package is orphaned (nothing depends on it)