Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Do not always return 0 in case of failed upgrade
Baptiste Daroussin committed 13 years ago
commit 09a2845b3ef550b778f76114894744489fa11b32
parent b59fb29c4f27f34d405598b6e68e1e5569ed4c59
1 file changed +3 -2
modified pkg/upgrade.c
@@ -50,6 +50,7 @@ exec_upgrade(int argc, char **argv)
	struct pkg_jobs *jobs = NULL;
	const char *reponame = NULL;
	int retcode = 1;
+
	int updcode;
	int ch;
	bool yes;
	bool all = false;
@@ -100,8 +101,8 @@ exec_upgrade(int argc, char **argv)

	/* first update the remote repositories if needed */
	if (!dry_run && auto_update && 
-
	    (retcode = pkgcli_update(false)) != EPKG_OK)
-
		return (retcode);
+
	    (updcode = pkgcli_update(false)) != EPKG_OK)
+
		return (updcode);

	if (pkgdb_open(&db, PKGDB_REMOTE) != EPKG_OK) {
		return (EX_IOERR);