fix find_package_matching to not accidentally skip some packages
authorDan Winship <danw@gnome.org>
Thu Mar 20 14:36:50 2008 -0400 (2008-03-20)
changeset 1838f4402ee125d
parent 182 eb67f1953710
child 184 472f8d7c7bbc
fix find_package_matching to not accidentally skip some packages
razor.c
     1.1 --- a/razor.c	Tue Mar 18 11:44:28 2008 -0400
     1.2 +++ b/razor.c	Thu Mar 20 14:36:50 2008 -0400
     1.3 @@ -2209,7 +2209,8 @@
     1.4  	} else {
     1.5  		while (prop >= props && prop->type != match_type)
     1.6  			prop--;
     1.7 -		while (prop > props + 1 && (prop - 1)->type == match_type)
     1.8 +		while (prop > props + 1 && (prop - 1)->name == prop->name &&
     1.9 +		       (prop - 1)->type == match_type)
    1.10  			prop--;
    1.11  	}
    1.12