diff -r 6b5f03f1c084 -r 458b03594baf main.c --- a/main.c Fri Oct 05 16:38:59 2007 -0400 +++ b/main.c Sun Oct 21 21:57:22 2007 -0400 @@ -47,6 +47,20 @@ } static int +command_list_files(int argc, const char *argv[]) +{ + struct razor_set *set; + + set = razor_set_open(repo_filename); + if (set == NULL) + return 1; + razor_set_list_files(set); + razor_set_destroy(set); + + return 0; +} + +static int command_what_requires(int argc, const char *argv[]) { struct razor_set *set; @@ -168,6 +182,7 @@ { "list", "list all packages", command_list }, { "list-requires", "list all requires or requires for the given package", command_list_requires }, { "list-provides", "list all provides or provides for the give package", command_list_provides }, + { "list-files", "list files for package set", command_list_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 },