main.c
changeset 60 fca1ef50dd2c
parent 54 9e3907688d78
child 66 bb4ca4a47f66
     1.1 --- a/main.c	Tue Oct 23 01:57:39 2007 -0400
     1.2 +++ b/main.c	Wed Oct 24 13:20:12 2007 -0400
     1.3 @@ -74,6 +74,19 @@
     1.4  	return 0;
     1.5  }
     1.6  
     1.7 +static int
     1.8 +command_list_package_files(int argc, const char *argv[])
     1.9 +{
    1.10 +	struct razor_set *set;
    1.11 +
    1.12 +	set = razor_set_open(repo_filename);
    1.13 +	if (set == NULL)
    1.14 +		return 1;
    1.15 +	razor_set_list_package_files(set, argv[0]);
    1.16 +	razor_set_destroy(set);
    1.17 +
    1.18 +	return 0;
    1.19 +}
    1.20  
    1.21  static int
    1.22  command_what_requires(int argc, const char *argv[])
    1.23 @@ -199,6 +212,7 @@
    1.24  	{ "list-provides", "list all provides or provides for the give package", command_list_provides },
    1.25  	{ "list-files", "list files for package set", command_list_files },
    1.26  	{ "list-file-packages", "list packages owning file", command_list_file_packages },
    1.27 +	{ "list-package-files", "list files in package", command_list_package_files },
    1.28  	{ "what-requires", "list the packages that have the given requires", command_what_requires },
    1.29  	{ "what-provides", "list the packages that have the given provides", command_what_provides },
    1.30  	{ "import-yum", "import yum filelist.xml on stdin", command_import_yum },