Various cleanups in opkg_remove.{c,h}
[oweals/opkg-lede.git] / libopkg / opkg_install.c
index c75a8d41d3542a99ee86f21a6ec70d2dce2ce2ff..6003f4f34081feb62127dbfb067becff27ccde44 100644 (file)
@@ -1477,13 +1477,10 @@ opkg_install_pkg(opkg_conf_t *conf, pkg_t *pkg, int from_upgrade)
                                 "  removing obsolesced files\n");
                    remove_obsolesced_files(conf, pkg, old_pkg);
               }
                                 "  removing obsolesced files\n");
                    remove_obsolesced_files(conf, pkg, old_pkg);
               }
+
                /* removing files from old package, to avoid ghost files */ 
                remove_data_files_and_list(conf, old_pkg);
                /* removing files from old package, to avoid ghost files */ 
                remove_data_files_and_list(conf, old_pkg);
-/* Pigi : It should be better to remove also maintainer and postrem scripts here, just in case*/
-               remove_maintainer_scripts_except_postrm(conf, old_pkg);
-               remove_postrm(conf, old_pkg);
-/* Pigi */
-
+               remove_maintainer_scripts(conf, old_pkg);
          }
 
 
          }