Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
during upgrade some dependencies can also be deinstall so they need to be able to stop an rcscript
Baptiste Daroussin committed 14 years ago
commit bc049c88d3dae196542c23e943f39fe819edd98e
parent 4ab1bf3
1 file changed +7 -0
modified libpkg/pkg_jobs.c
@@ -265,6 +265,13 @@ pkg_jobs_install(struct pkg_jobs *j)
				STAILQ_INSERT_TAIL(&pkg_queue, pkg, next);
				pkg_script_run(pkg, PKG_SCRIPT_PRE_DEINSTALL);
				pkg_get(pkg, PKG_ORIGIN, &origin);
+
				/*
+
				 * stop the different related services if the users do want that
+
				 * and that the service is running
+
				 */
+
				pkg_config_bool(PKG_CONFIG_HANDLE_RC_SCRIPTS, &handle_rc);
+
				if (handle_rc)
+
					pkg_stop_rc_scripts(pkg);
				pkgdb_unregister_pkg(j->db, origin);
				pkg = NULL;
			}