summaryrefslogtreecommitdiff
path: root/apt/debfile.py
diff options
context:
space:
mode:
authorKiwinote <kiwinote@gmail.com>2010-06-25 21:11:57 +0100
committerKiwinote <kiwinote@gmail.com>2010-06-25 21:11:57 +0100
commitae363bccb5b52ffc7a17e3f6b3d7b1cff5f65a98 (patch)
treea361c9d55da6930c343783bf21ba1505e1caba70 /apt/debfile.py
parent45a7ba935c89034c0ccc0c9ccc4f801a3d465bcf (diff)
downloadpython-apt-ae363bccb5b52ffc7a17e3f6b3d7b1cff5f65a98.tar.gz
Merge cache.get_providers_for() into cache.get_providing_packages() and update debfile.py to use this
Diffstat (limited to 'apt/debfile.py')
-rw-r--r--apt/debfile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt/debfile.py b/apt/debfile.py
index 494dd14e..90d58449 100644
--- a/apt/debfile.py
+++ b/apt/debfile.py
@@ -92,7 +92,7 @@ class DebPackage(object):
# but only do that if there is no version required in the
# dependency (we do not supprot versionized dependencies)
if not oper:
- for ppkg in self._cache.get_providers_for(depname):
+ for ppkg in self._cache.get_providing_packages(depname):
if ppkg.is_installed:
self._dbg(3, "found installed '%s' that provides '%s'" % (ppkg.name, depname))
return True
@@ -653,7 +653,7 @@ def _test():
cache = Cache()
vp = "www-browser"
- print "%s virtual: %s" % (vp, cache.is_virtual_pkg(vp))
+ print "%s virtual: %s" % (vp, cache.is_virtual_package(vp))
providers = cache.get_providing_packages(vp)
print "Providers for %s :" % vp
for pkg in providers: