repository: Add compat "whatprovides" method.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 25 Sep 2013 00:34:12 +0000 (01:34 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 25 Sep 2013 00:34:12 +0000 (01:34 +0100)
Fixes #10421.

src/pakfire/repository/__init__.py

index ba07bf2..e242b65 100644 (file)
@@ -194,6 +194,9 @@ class Repositories(object):
                        if repo.name == name or name == "*":
                                repo.enabled = False
 
+       def whatprovides(self, *args, **kwargs):
+               return self.pool.whatprovides(self.pakfire, *args, **kwargs)
+
        def clean(self):
                log.info("Cleaning up all repository caches...")