Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Use sysexits
Matthew Seaman committed 13 years ago
commit fb05c6044dc93dbf95c399bff66620da0bb2e41e
parent f1e895b
1 file changed +3 -3
modified pkg/update.c
@@ -104,7 +104,7 @@ usage_update(void)
int
exec_update(int argc, char **argv)
{
-
	int retcode = EPKG_OK;
+
	int ret;
	int ch;
	bool force = false;

@@ -134,7 +134,7 @@ exec_update(int argc, char **argv)
		return (EX_NOPERM);
	}

-
	retcode = pkgcli_update(force);
+
	ret = pkgcli_update(force);

-
	return (retcode);
+
	return ((ret == EPKG_OK) ? EX_OK : EX_SOFTWARE);
}