summaryrefslogtreecommitdiff
path: root/apt/debfile.py
diff options
context:
space:
mode:
Diffstat (limited to 'apt/debfile.py')
-rw-r--r--apt/debfile.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/apt/debfile.py b/apt/debfile.py
index 4fcd6ec0..b1d436cd 100644
--- a/apt/debfile.py
+++ b/apt/debfile.py
@@ -23,12 +23,9 @@
import warnings
warnings.filterwarnings("ignore", "apt API not stable yet", FutureWarning)
import apt_inst, apt_pkg
-import apt
import sys
import os
from gettext import gettext as _
-from cache import Cache
-from progress import DpkgInstallProgress
# Constants for comparing the local package file with the version in the cache
(VERSION_NONE,
@@ -214,7 +211,7 @@ class DebPackage(object):
WARNING: This method will is deprecated. Please use the
attribute DebPackage.depends instead.
"""
- return self.depends
+ return self.conflicts
def conflicts(self):
"""
@@ -507,6 +504,8 @@ class DscSrcPackage(DebPackage):
return self._satisfyDepends(self.depends)
if __name__ == "__main__":
+ from cache import Cache
+ from progress import DpkgInstallProgress
cache = Cache()