1.1 --- a/src/main.c Fri Jul 03 18:02:33 2009 +0100
1.2 +++ b/src/main.c Sat Jul 04 11:11:59 2009 +0100
1.3 @@ -471,19 +471,10 @@
1.4 set = razor_set_create_from_yum();
1.5 if (set == NULL)
1.6 return 1;
1.7 - if (razor_set_write(set, rawhide_repo_filename, RAZOR_REPO_FILE_MAIN)) {
1.8 + if (razor_set_write(set, rawhide_repo_filename, RAZOR_SECTION_ALL)) {
1.9 perror(rawhide_repo_filename);
1.10 return -1;
1.11 }
1.12 - if (razor_set_write(set, "rawhide-details.rzdb",
1.13 - RAZOR_REPO_FILE_DETAILS)) {
1.14 - perror("rawhide-details.rzdb");
1.15 - return -1;
1.16 - }
1.17 - if (razor_set_write(set, "rawhide-files.rzdb", RAZOR_REPO_FILE_FILES)) {
1.18 - perror("rawhide-files.rzdb");
1.19 - return -1;
1.20 - }
1.21 razor_set_destroy(set);
1.22 printf("wrote %s\n", rawhide_repo_filename);
1.23
1.24 @@ -569,9 +560,7 @@
1.25 return 1;
1.26
1.27 upstream = razor_set_open(rawhide_repo_filename);
1.28 - if (upstream == NULL ||
1.29 - razor_set_open_details(upstream, "rawhide-details.rzdb") ||
1.30 - razor_set_open_files(upstream, "rawhide-files.rzdb"))
1.31 + if (upstream == NULL)
1.32 return 1;
1.33
1.34 trans = razor_transaction_create(set, upstream);
1.35 @@ -594,7 +583,7 @@
1.36 }
1.37
1.38 set = razor_transaction_commit(trans);
1.39 - razor_set_write(set, updated_repo_filename, RAZOR_REPO_FILE_MAIN);
1.40 + razor_set_write(set, updated_repo_filename, RAZOR_SECTION_ALL);
1.41 razor_transaction_destroy(trans);
1.42 razor_set_destroy(set);
1.43 razor_set_destroy(upstream);
1.44 @@ -737,9 +726,7 @@
1.45 printf("\nsaving\n");
1.46 set = razor_importer_finish(importer);
1.47
1.48 - razor_set_write(set, repo_filename, RAZOR_REPO_FILE_MAIN);
1.49 - razor_set_write(set, "system-details.rzdb", RAZOR_REPO_FILE_DETAILS);
1.50 - razor_set_write(set, "system-files.rzdb", RAZOR_REPO_FILE_FILES);
1.51 + razor_set_write(set, repo_filename, RAZOR_SECTION_ALL);
1.52 razor_set_destroy(set);
1.53 printf("wrote %s\n", repo_filename);
1.54
1.55 @@ -995,12 +982,10 @@
1.56
1.57 system = razor_root_get_system_set(root);
1.58 upstream = razor_set_open(rawhide_repo_filename);
1.59 - if (upstream == NULL ||
1.60 - razor_set_open_details(upstream, "rawhide-details.rzdb") ||
1.61 - razor_set_open_files(upstream, "rawhide-files.rzdb")) {
1.62 - fprintf(stderr, "couldn't open rawhide repo\n");
1.63 - razor_root_close(root);
1.64 - return 1;
1.65 + if (upstream == NULL) {
1.66 + fprintf(stderr, "couldn't open rawhide repo\n");
1.67 + razor_root_close(root);
1.68 + return 1;
1.69 }
1.70
1.71 if (relocations) {
1.72 @@ -1177,9 +1162,6 @@
1.73 if (set == NULL)
1.74 return 1;
1.75
1.76 - if (razor_set_open_details(set, "rawhide-details.rzdb"))
1.77 - return 1;
1.78 -
1.79 pi = razor_package_iterator_create(set);
1.80 while (razor_package_iterator_next(pi, &package,
1.81 RAZOR_DETAIL_NAME, &name,