1.1 --- a/main.c Mon Oct 22 20:12:58 2007 -0400
1.2 +++ b/main.c Mon Oct 22 22:53:55 2007 -0400
1.3 @@ -61,6 +61,21 @@
1.4 }
1.5
1.6 static int
1.7 +command_list_file_packages(int argc, const char *argv[])
1.8 +{
1.9 + struct razor_set *set;
1.10 +
1.11 + set = razor_set_open(repo_filename);
1.12 + if (set == NULL)
1.13 + return 1;
1.14 + razor_set_list_file_packages(set, argv[0]);
1.15 + razor_set_destroy(set);
1.16 +
1.17 + return 0;
1.18 +}
1.19 +
1.20 +
1.21 +static int
1.22 command_what_requires(int argc, const char *argv[])
1.23 {
1.24 struct razor_set *set;
1.25 @@ -183,6 +198,7 @@
1.26 { "list-requires", "list all requires or requires for the given package", command_list_requires },
1.27 { "list-provides", "list all provides or provides for the give package", command_list_provides },
1.28 { "list-files", "list files for package set", command_list_files },
1.29 + { "list-file-packages", "list packages owning file", command_list_file_packages },
1.30 { "what-requires", "list the packages that have the given requires", command_what_requires },
1.31 { "what-provides", "list the packages that have the given provides", command_what_provides },
1.32 { "import-yum", "import yum filelist.xml on stdin", command_import_yum },