diff -r 9e3907688d78 -r c525dec02ef4 main.c --- a/main.c Tue Oct 23 01:57:39 2007 -0400 +++ b/main.c Wed Oct 24 12:21:29 2007 -0400 @@ -74,6 +74,19 @@ return 0; } +static int +command_list_package_files(int argc, const char *argv[]) +{ + struct razor_set *set; + + set = razor_set_open(repo_filename); + if (set == NULL) + return 1; + razor_set_list_package_files(set, argv[0]); + razor_set_destroy(set); + + return 0; +} static int command_what_requires(int argc, const char *argv[]) @@ -199,6 +212,7 @@ { "list-provides", "list all provides or provides for the give package", command_list_provides }, { "list-files", "list files for package set", command_list_files }, { "list-file-packages", "list packages owning file", command_list_file_packages }, + { "list-package-files", "list files in package", command_list_package_files }, { "what-requires", "list the packages that have the given requires", command_what_requires }, { "what-provides", "list the packages that have the given provides", command_what_provides }, { "import-yum", "import yum filelist.xml on stdin", command_import_yum },