Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Print when no jobs found and return ok
Baptiste Daroussin committed 14 years ago
commit 191ed24a2598c8d274b0bd370163cb99cdc4f095
parent 5f6750f
3 files changed +7 -1
modified pkg/delete.c
@@ -108,6 +108,8 @@ exec_delete(int argc, char **argv)

	/* check if we have something to deinstall */
	if (pkg_jobs_isempty(jobs)) {
+
		printf("Nothing to do\n");
+
		retcode = 0;
		goto cleanup;
	}

modified pkg/install.c
@@ -83,8 +83,11 @@ exec_install(int argc, char **argv)
		pkg = NULL;
	}

-
	if (pkg_jobs_isempty(jobs))
+
	if (pkg_jobs_isempty(jobs)) {
+
		printf("Nothing to do\n");
+
		retcode = 0;
		goto cleanup;
+
	}

	/* print a summary before applying the jobs */
	pkg = NULL;
modified pkg/upgrade.c
@@ -75,6 +75,7 @@ exec_upgrade(int argc, char **argv)
	}

	if (pkg_jobs_isempty(jobs)) {
+
		printf("Nothing to do\n");
		retcode = 0;
		goto cleanup;
	}