Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Rationalise the logic
Matthew Seaman committed 13 years ago
commit 7b386f7d4aa0af4ea69a218cb3eb80ad1c530887
parent f080efa
1 file changed +1 -4
modified pkg/autoremove.c
@@ -113,10 +113,7 @@ exec_autoremove(int argc, char **argv)
		if (dry_run)
			yes = false;
	}
-
	if (yes) {
-
		if (yes && (retcode = pkg_jobs_apply(jobs)) != EPKG_OK)
-
			goto cleanup;
-
	} else
+
	if (!yes || (retcode = pkg_jobs_apply(jobs)) != EPKG_OK)
		goto cleanup;

	pkgdb_compact(db);