Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Pkg delete now returns valid exit code.
Vsevolod Stakhov committed 13 years ago
commit d6707e42f3bb131d0e594515c270680e4a4fba30
parent ea23c76
1 file changed +4 -2
modified pkg/delete.c
@@ -176,11 +176,13 @@ exec_delete(int argc, char **argv)
	if (!quiet || dry_run) {
		print_jobs_summary(jobs,
		    "Deinstallation has been requested for the following %d packages:\n\n", nbactions);
+
		if (dry_run) {
+
			retcode = EX_OK;
+
			goto cleanup;
+
		}
		if (!yes && !dry_run)
			yes = query_yesno(
		            "\nProceed with deinstalling packages [y/N]: ");
-
		if (dry_run)
-
			yes = false;
	}
	if (!yes || (retcode = pkg_jobs_apply(jobs)) != EPKG_OK)
		goto cleanup;