diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-06-20 21:33:29 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-06-20 21:33:29 -0400 |
commit | fbdf16df80f78f67aea0e3ce682507c90e49c81c (patch) | |
tree | ec60fe29276496ec3efb0f7e1456dc4438e47a83 /src | |
parent | b8ddfec6c21dffca5a867aeb3bc9d873aeeb4f56 (diff) |
command_update: check the right return code to see if transaction failed.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |