main.c
changeset 69 35ca1ba469ec
parent 66 bb4ca4a47f66
child 70 e94d16f789e5
     1.1 --- a/main.c	Wed Oct 31 22:41:27 2007 -0400
     1.2 +++ b/main.c	Sun Nov 04 00:58:57 2007 -0400
     1.3 @@ -47,6 +47,30 @@
     1.4  }
     1.5  
     1.6  static int
     1.7 +command_list_obsoletes(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 +	razor_set_list_properties(set, argv[0], RAZOR_PROPERTY_OBSOLETES);
    1.13 +	razor_set_destroy(set);
    1.14 +
    1.15 +	return 0;
    1.16 +}
    1.17 +
    1.18 +static int
    1.19 +command_list_conflicts(int argc, const char *argv[])
    1.20 +{
    1.21 +	struct razor_set *set;
    1.22 +
    1.23 +	set = razor_set_open(repo_filename);
    1.24 +	razor_set_list_properties(set, argv[0], RAZOR_PROPERTY_CONFLICTS);
    1.25 +	razor_set_destroy(set);
    1.26 +
    1.27 +	return 0;
    1.28 +}
    1.29 +
    1.30 +static int
    1.31  command_list_files(int argc, const char *argv[])
    1.32  {
    1.33  	struct razor_set *set;
    1.34 @@ -210,8 +234,10 @@
    1.35  	int (*func)(int argc, const char *argv[]);
    1.36  } razor_commands[] = {
    1.37  	{ "list", "list all packages", command_list },
    1.38 -	{ "list-requires", "list all requires or requires for the given package", command_list_requires },
    1.39 -	{ "list-provides", "list all provides or provides for the give package", command_list_provides },
    1.40 +	{ "list-requires", "list all requires for the given package", command_list_requires },
    1.41 +	{ "list-provides", "list all provides for the give package", command_list_provides },
    1.42 +	{ "list-obsoletes", "list all obsoletes for the give package", command_list_obsoletes },
    1.43 +	{ "list-conflicts", "list all conflicts for the give package", command_list_conflicts },
    1.44  	{ "list-files", "list files for package set", command_list_files },
    1.45  	{ "list-file-packages", "list packages owning file", command_list_file_packages },
    1.46  	{ "list-package-files", "list files in package", command_list_package_files },