git://project.juiblex.co.uk
/
razor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b8ddfec
)
command_update: check the right return code to see if transaction failed.
author
Kristian Høgsberg
<krh@redhat.com>
Sat, 21 Jun 2008 01:33:29 +0000 (21:33 -0400)
committer
Kristian Høgsberg
<krh@redhat.com>
Sat, 21 Jun 2008 01:33:29 +0000 (21:33 -0400)
src/main.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
96b2517
..
4f09735
100644
(file)
--- 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);