aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2009-08-14 16:32:10 -0400
committerJason Woodward2009-08-14 16:32:10 -0400
commitc15d5acb10d117f8dd3e037355a11c1237d562ec (patch)
treeb285c1e4946d4e51e434e9d90dd6c3e1dead7ceb
parent0b5deae5a1b10a92cc5d41c9ce61452751f6d495 (diff)
downloadslapt-get-c15d5acb10d117f8dd3e037355a11c1237d562ec.tar.gz
for consistency error out when --install is passed a package that does not exist (George)
-rw-r--r--ChangeLog4
-rw-r--r--src/action.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 86c1ed2..3a5775c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
-0.10.1d Aug 11, 2009
+0.10.1d Aug 14, 2009
+ * for consistency error out when --install is passed a package that
+ does not exist (George)
* updated conflict detection so that multiple conflicts are handled
correctly (thanks Steve)
* do not print empty strings as suggestions
diff --git a/src/action.c b/src/action.c
index 13bf5d3..9c9a070 100644
--- a/src/action.c
+++ b/src/action.c
@@ -73,7 +73,7 @@ void slapt_pkg_action_install(const slapt_rc_config *global_config,
if ( pkg == NULL ) {
fprintf(stderr,gettext("No such package: %s\n"),arg);
- continue;
+ exit(EXIT_FAILURE);
}
}