Cleanup php4 remove function.
[carnet-upgrade.git] / src / functions.sh
index beccd14..ef321d6 100644 (file)
@@ -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)