diff options
author | Richard Hughes <richard@hughsie.com> | 2008-07-02 18:46:47 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2008-07-02 18:46:47 +0100 |
commit | d1b453584fb827a41760a8808792e702ee7be851 (patch) | |
tree | 0938048a1b9882dece65abf78a4e66304e8b1dbb /src | |
parent | da939e15c26fa327cd387b5ad142f5142484f430 (diff) |
rename the .repo files to .rzdb files
Diffstat (limited to 'src')
-rw-r--r-- | src/.gitignore | 2 | ||||
-rw-r--r-- | src/main.c | 35 | ||||
-rw-r--r-- | src/rpm.c | 8 |
3 files changed, 23 insertions, 22 deletions
diff --git a/src/.gitignore b/src/.gitignore index c395a0d..501c34d 100644 --- a/src/.gitignore +++ b/src/.gitignore @@ -3,7 +3,7 @@ razor rpm test-driver -*.repo +*.rzdb *.xml.gz install rpms @@ -33,10 +33,10 @@ #include <errno.h> #include "razor.h" -static const char system_repo_filename[] = "system.repo"; -static const char next_repo_filename[] = "system-next.repo"; -static const char rawhide_repo_filename[] = "rawhide.repo"; -static const char updated_repo_filename[] = "system-updated.repo"; +static const char system_repo_filename[] = "system.rzdb"; +static const char next_repo_filename[] = "system-next.rzdb"; +static const char rawhide_repo_filename[] = "rawhide.rzdb"; +static const char updated_repo_filename[] = "system-updated.rzdb"; static const char install_root[] = "install"; static const char *repo_filename = system_repo_filename; static const char *yum_url; @@ -213,7 +213,7 @@ command_list_files(int argc, const char *argv[]) set = razor_set_open(repo_filename); if (set == NULL) return 1; - if (razor_set_open_files(set, "system-files.repo")) + if (razor_set_open_files(set, "system-files.rzdb")) return 1; razor_set_list_files(set, argv[0]); @@ -231,7 +231,7 @@ command_list_file_packages(int argc, const char *argv[]) set = razor_set_open(repo_filename); if (set == NULL) return 1; - if (razor_set_open_files(set, "system-files.repo")) + if (razor_set_open_files(set, "system-files.rzdb")) return 1; pi = razor_package_iterator_create_for_file(set, argv[0]); @@ -254,7 +254,7 @@ command_list_package_files(int argc, const char *argv[]) set = razor_set_open(repo_filename); if (set == NULL) return 1; - if (razor_set_open_files(set, "system-files.repo")) + if (razor_set_open_files(set, "system-files.rzdb")) return 1; pi = create_iterator_from_argv(set, argc, argv); @@ -418,8 +418,8 @@ command_import_yum(int argc, const char *argv[]) if (set == NULL) return 1; razor_set_write(set, rawhide_repo_filename, RAZOR_REPO_FILE_MAIN); - razor_set_write(set, "rawhide-details.repo", RAZOR_REPO_FILE_DETAILS); - razor_set_write(set, "rawhide-files.repo", RAZOR_REPO_FILE_FILES); + razor_set_write(set, "rawhide-details.rzdb", RAZOR_REPO_FILE_DETAILS); + razor_set_write(set, "rawhide-files.rzdb", RAZOR_REPO_FILE_FILES); razor_set_destroy(set); printf("wrote %s\n", rawhide_repo_filename); @@ -435,8 +435,8 @@ command_import_rpmdb(int argc, const char *argv[]) if (set == NULL) return 1; razor_set_write(set, repo_filename, RAZOR_REPO_FILE_MAIN); - razor_set_write(set, "system-details.repo", RAZOR_REPO_FILE_DETAILS); - razor_set_write(set, "system-files.repo", RAZOR_REPO_FILE_FILES); + razor_set_write(set, "system-details.rzdb", RAZOR_REPO_FILE_DETAILS); + razor_set_write(set, "system-files.rzdb", RAZOR_REPO_FILE_FILES); razor_set_destroy(set); printf("wrote %s\n", repo_filename); @@ -522,7 +522,7 @@ command_update(int argc, const char *argv[]) razor_set_write(set, updated_repo_filename, RAZOR_REPO_FILE_MAIN); razor_set_destroy(set); razor_set_destroy(upstream); - printf("wrote system-updated.repo\n"); + printf("wrote system-updated.rzdb\n"); return 0; } @@ -555,7 +555,7 @@ command_remove(int argc, const char *argv[]) razor_set_write(set, updated_repo_filename, RAZOR_REPO_FILE_MAIN); razor_set_destroy(set); razor_set_destroy(upstream); - printf("wrote system-updated.repo\n"); + printf("wrote system-updated.rzdb\n"); return 0; } @@ -648,8 +648,8 @@ command_import_rpms(int argc, const char *argv[]) set = razor_importer_finish(importer); razor_set_write(set, repo_filename, RAZOR_REPO_FILE_MAIN); - razor_set_write(set, "system-details.repo", RAZOR_REPO_FILE_DETAILS); - razor_set_write(set, "system-files.repo", RAZOR_REPO_FILE_FILES); + razor_set_write(set, "system-details.rzdb", RAZOR_REPO_FILE_DETAILS); + razor_set_write(set, "system-files.rzdb", RAZOR_REPO_FILE_FILES); razor_set_destroy(set); printf("wrote %s\n", repo_filename); @@ -868,7 +868,7 @@ command_info(int argc, const char *argv[]) set = razor_set_open(repo_filename); if (set == NULL) return 1; - if (razor_set_open_details(set, "system-details.repo")) + if (razor_set_open_details(set, "system-details.rzdb")) return 1; pi = razor_package_iterator_create(set); while (razor_package_iterator_next(pi, &package, @@ -924,7 +924,8 @@ command_search(int argc, const char *argv[]) set = razor_set_open(rawhide_repo_filename); if (set == NULL) return 1; - if (razor_set_open_details(set, "rawhide-details.repo")) + + if (razor_set_open_details(set, "rawhide-details.rzdb")) return 1; pi = razor_package_iterator_create(set); @@ -246,7 +246,7 @@ static const struct option rpm_options[] = { { } }; -static const char system_repo_filename[] = "system.repo"; +static const char system_repo_filename[] = "system.rzdb"; static const char *repo_filename = system_repo_filename; static void @@ -349,7 +349,7 @@ get_query_packages(struct razor_set *set, int argc, const char *argv[]) exit(1); } - files = "install/var/lib/razor/system-files.repo"; + files = "install/var/lib/razor/system-files.rzdb"; if (option_file) if (razor_set_open_files(set, files)) exit(1); @@ -480,11 +480,11 @@ command_query(int argc, const char *argv[]) set = razor_root_open_read_only(option_root); /* FIXME: We need to figure out how to do this right. */ - details = "install/var/lib/razor/system-details.repo"; + details = "install/var/lib/razor/system-details.rzdb"; if (option_info) if (razor_set_open_details(set, details)) return; - files = "install/var/lib/razor/system-files.repo"; + files = "install/var/lib/razor/system-files.rzdb"; if (option_list) if (razor_set_open_files(set, files)) return; |