main.c
changeset 48 458b03594baf
parent 45 6b5f03f1c084
child 49 c66fd9a1eabe
     1.1 --- a/main.c	Fri Oct 05 16:38:59 2007 -0400
     1.2 +++ b/main.c	Sun Oct 21 21:57:22 2007 -0400
     1.3 @@ -47,6 +47,20 @@
     1.4  }
     1.5  
     1.6  static int
     1.7 +command_list_files(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_files(set);
    1.15 +	razor_set_destroy(set);
    1.16 +
    1.17 +	return 0;
    1.18 +}
    1.19 +
    1.20 +static int
    1.21  command_what_requires(int argc, const char *argv[])
    1.22  {
    1.23  	struct razor_set *set;
    1.24 @@ -168,6 +182,7 @@
    1.25  	{ "list", "list all packages", command_list },
    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  	{ "what-requires", "list the packages that have the given requires", command_what_requires },
    1.30  	{ "what-provides", "list the packages that have the given provides", command_what_provides },
    1.31  	{ "import-yum", "import yum filelist.xml on stdin", command_import_yum },