From fbdf16df80f78f67aea0e3ce682507c90e49c81c Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Fri, 20 Jun 2008 21:33:29 -0400 Subject: command_update: check the right return code to see if transaction failed. --- src/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 96b2517..4f09735 100644 --- a/src/main.c +++ b/src/main.c @@ -439,9 +439,12 @@ command_update(int argc, const char *argv[]) } } - errors = razor_transaction_resolve(trans); - if (errors) + razor_transaction_resolve(trans); + errors = razor_transaction_describe(trans); + if (errors) { + fprintf(stderr, "unresolved dependencies\n"); return 1; + } set = razor_transaction_finish(trans); razor_set_write(set, updated_repo_filename); -- cgit v1.2.3