diff -r 7f5d32472bef -r 7a1b0282ae3c main.c --- a/main.c Mon Jun 09 16:14:05 2008 -0400 +++ b/main.c Sun Jun 15 22:33:15 2008 -0400 @@ -446,7 +446,7 @@ static int command_remove(int argc, const char *argv[]) { - struct razor_set *set; + struct razor_set *set, *upstream; struct razor_transaction *trans; int i, errors; @@ -454,7 +454,8 @@ if (set == NULL) return 1; - trans = razor_transaction_create(set, NULL); + upstream = razor_set_create(); + trans = razor_transaction_create(set, upstream); for (i = 0; i < argc; i++) { if (mark_packages_for_removal(trans, set, argv[i]) == 0) { fprintf(stderr, "no match for %s\n", argv[i]); @@ -469,6 +470,7 @@ set = razor_transaction_finish(trans); razor_set_write(set, updated_repo_filename); razor_set_destroy(set); + razor_set_destroy(upstream); printf("wrote system-updated.repo\n"); return 0;