"requires x > n" matches "provides x", but "obsoletes x < n" doesn't
authorDan Winship <danw@gnome.org>
Wed, 12 Mar 2008 17:27:26 +0000 (13:27 -0400)
committerDan Winship <danw@gnome.org>
Wed, 12 Mar 2008 17:27:26 +0000 (13:27 -0400)
razor.c

diff --git a/razor.c b/razor.c
index 65ac783..cb88294 100644 (file)
--- a/razor.c
+++ b/razor.c
@@ -2031,6 +2031,12 @@ provider_satisfies_requirement(struct razor_property *provider,
 
        if (!*required)
                return 1;
+       if (!*provided) {
+               if (requirement->relation >= RAZOR_VERSION_EQUAL)
+                       return 1;
+               else
+                       return 0;
+       }
 
        cmp = versioncmp(provided, required);