summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2014-02-13 20:55:36 -0500
committerJason Woodward2014-02-13 20:55:36 -0500
commit5e22bebcc11bb1ce83abdb79a82e4d5b69cd9910 (patch)
tree7fe09db430298bd2027daa482d5df72d13ef5d49
parentd912cbd8d56f845219aca1e556d586c8adf4ee97 (diff)
downloadslapt-get-5e22bebcc11bb1ce83abdb79a82e4d5b69cd9910.tar.gz
--show now returns non-zero if nothing found
-rw-r--r--ChangeLog1
-rw-r--r--src/action.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5683fa2..8b60c7e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
0.10.2q Feb 13, 2014
+ * --show now returns non-zero if nothing found
* tweak search to return exact name matches in case of regex characters
0.10.2p Apr 29, 2013
diff --git a/src/action.c b/src/action.c
index 12288e7..7389fe3 100644
--- a/src/action.c
+++ b/src/action.c
@@ -494,6 +494,7 @@ void slapt_pkg_action_show(const char *pkg_name)
free(description);
} else {
printf(gettext("No such package: %s\n"),pkg_name);
+ exit(EXIT_FAILURE);
}
slapt_free_pkg_list(avail_pkgs);