main.c
changeset 101 9708f6d5db8c
parent 100 27aada326858
child 102 337a7a55e2c6
     1.1 --- a/main.c	Thu Jan 10 23:42:42 2008 -0500
     1.2 +++ b/main.c	Thu Jan 17 23:28:37 2008 -0500
     1.3 @@ -136,6 +136,20 @@
     1.4  	return 0;
     1.5  }
     1.6  
     1.7 +static void
     1.8 +list_packages_for_property(struct razor_set *set,
     1.9 +			   struct razor_property *property)
    1.10 +{
    1.11 +	struct razor_package_iterator *pi;
    1.12 +	struct razor_package *package;
    1.13 +	const char *name, *version;
    1.14 +
    1.15 +	pi = razor_package_iterator_create_for_property(set, property);
    1.16 +	while (razor_package_iterator_next(pi, &package, &name, &version))
    1.17 +		printf("%s-%s\n", name, version);
    1.18 +	razor_package_iterator_destroy(pi);
    1.19 +}
    1.20 +
    1.21  static int
    1.22  list_property_packages(const char *ref_name,
    1.23  		       const char *ref_version,
    1.24 @@ -164,7 +178,7 @@
    1.25  		if (ref_type != type)
    1.26  			continue;
    1.27  
    1.28 -		razor_set_list_property_packages(set, property);
    1.29 +		list_packages_for_property(set, property);
    1.30  	}
    1.31  	razor_property_iterator_destroy(pi);
    1.32