summaryrefslogtreecommitdiff
path: root/apt
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-11-10 16:06:21 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2011-11-10 16:06:21 +0100
commita0c9ec82095d2e09715e5dc953119ec4fa7b4c2e (patch)
tree4c1458a5304b24b6914610104cd0767168e658d8 /apt
parent52097d7edaa97379a4a604be4feb24e5e9c3bd73 (diff)
parent1948d5d03887eb81ea7797c0f23049ef6c3895ce (diff)
downloadpython-apt-a0c9ec82095d2e09715e5dc953119ec4fa7b4c2e.tar.gz
merge from the mvo branch
Diffstat (limited to 'apt')
-rw-r--r--apt/cache.py2
-rw-r--r--apt/package.py3
2 files changed, 4 insertions, 1 deletions
diff --git a/apt/cache.py b/apt/cache.py
index bab5c277..a4585277 100644
--- a/apt/cache.py
+++ b/apt/cache.py
@@ -111,7 +111,7 @@ class Cache(object):
]
for d in dirs:
if not os.path.exists(rootdir + d):
- print "creating: ", rootdir + d
+ #print "creating: ", rootdir + d
os.makedirs(rootdir + d)
for f in files:
if not os.path.exists(rootdir + f):
diff --git a/apt/package.py b/apt/package.py
index 4104f93e..cb373c2e 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -707,6 +707,9 @@ class Package(object):
return '<Package: name:%r architecture=%r id:%r>' % (self._pkg.name,
self._pkg.architecture, self._pkg.id)
+ def __cmp__(self, other):
+ return cmp(self.name, other.name)
+
def candidate(self):
"""Return the candidate version of the package.