Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Print when no jobs found and return ok
Baptiste Daroussin committed 14 years ago
commit 191ed24a2598c8d274b0bd370163cb99cdc4f095
parent 5f6750f7f90d882d7fc8a38db0e4a926e7c8e826
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;
	}