1.1 --- a/src/main.c Mon Jun 16 15:40:30 2008 -0400
1.2 +++ b/src/main.c Thu Jun 19 00:32:24 2008 -0400
1.3 @@ -657,8 +657,8 @@
1.4 }
1.5
1.6 if (dependencies) {
1.7 - errors = razor_transaction_resolve(trans);
1.8 - if (errors) {
1.9 + razor_transaction_resolve(trans);
1.10 + if (razor_transaction_describe(trans) > 0) {
1.11 razor_root_close(root);
1.12 return 1;
1.13 }
1.14 @@ -674,6 +674,7 @@
1.15 return 1;
1.16 }
1.17
1.18 + errors = 0;
1.19 razor_root_diff(root, download_package, &errors);
1.20 if (errors > 0) {
1.21 fprintf(stderr, "failed to download %d packages\n", errors);
1.22 @@ -683,7 +684,7 @@
1.23
1.24 /* FIXME: We need to figure out the right install order here,
1.25 * so the post and pre scripts can run. */
1.26 - razor_root_diff(root, install_package, (void *) root);
1.27 + razor_root_diff(root, install_package, (void *) install_root);
1.28
1.29 razor_set_destroy(next);
1.30 razor_set_destroy(upstream);