diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-07-08 21:59:36 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-07-08 21:59:36 -0400 |
commit | 5e777955178cbb1eb37ca9c95ec9c04ff90be939 (patch) | |
tree | ebcfe95747db49695a5482ad009d5ce2e8d1701c /src | |
parent | d255e6c8c6c8a2282e35b8b43c1bd8e12e7a6906 (diff) |
Always open all three rzdb files when we're merging package sets.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -497,8 +497,15 @@ command_update(int argc, const char *argv[]) int i, errors; set = razor_set_open(repo_filename); + if (set == NULL || + razor_set_open_details(set, "system-details.rzdb") || + razor_set_open_files(set, "system-files.rzdb")) + return 1; + upstream = razor_set_open(rawhide_repo_filename); - if (set == NULL || upstream == NULL) + if (upstream == NULL || + razor_set_open_details(upstream, "rawhide-details.rzdb") || + razor_set_open_files(upstream, "rawhide-files.rzdb")) return 1; trans = razor_transaction_create(set, upstream); @@ -763,6 +770,14 @@ command_install(int argc, const char *argv[]) system = razor_root_get_system_set(root); upstream = razor_set_open(rawhide_repo_filename); + if (upstream == NULL || + razor_set_open_details(upstream, "rawhide-details.rzdb") || + razor_set_open_files(upstream, "rawhide-files.rzdb")) { + fprintf(stderr, "couldn't open rawhide repo\n"); + razor_root_close(root); + return 1; + } + trans = razor_transaction_create(system, upstream); for (; i < argc; i++) { |