summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-06-20 21:33:29 -0400
committerKristian Høgsberg <krh@redhat.com>2008-06-20 21:33:29 -0400
commitfbdf16df80f78f67aea0e3ce682507c90e49c81c (patch)
treeec60fe29276496ec3efb0f7e1456dc4438e47a83 /src
parentb8ddfec6c21dffca5a867aeb3bc9d873aeeb4f56 (diff)
command_update: check the right return code to see if transaction failed.
Diffstat (limited to 'src')
-rw-r--r--src/main.c7
1 files 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);