diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-11-10 16:06:21 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-11-10 16:06:21 +0100 |
| commit | a0c9ec82095d2e09715e5dc953119ec4fa7b4c2e (patch) | |
| tree | 4c1458a5304b24b6914610104cd0767168e658d8 /apt | |
| parent | 52097d7edaa97379a4a604be4feb24e5e9c3bd73 (diff) | |
| parent | 1948d5d03887eb81ea7797c0f23049ef6c3895ce (diff) | |
| download | python-apt-a0c9ec82095d2e09715e5dc953119ec4fa7b4c2e.tar.gz | |
merge from the mvo branch
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/cache.py | 2 | ||||
| -rw-r--r-- | apt/package.py | 3 |
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. |
