diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2005-09-12 12:39:05 +0000 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2005-09-12 12:39:05 +0000 |
| commit | 481269830ce99cef316c09db10235adca8fcc53d (patch) | |
| tree | be3143fa020c8e2a6b75e43142e1e8434549762b /apt | |
| parent | 3a03685e6c656fac6c11d6df299f0e651b00b4f4 (diff) | |
| download | python-apt-481269830ce99cef316c09db10235adca8fcc53d.tar.gz | |
* export locking
Diffstat (limited to 'apt')
| -rw-r--r-- | apt/package.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apt/package.py b/apt/package.py index 5268b8f9..9749da52 100644 --- a/apt/package.py +++ b/apt/package.py @@ -214,6 +214,14 @@ class Package(object): return ver.InstalledSize installedSize = property(installedSize) + # canidate origin + def candidateOrigin(self): + ver = self._depcache.GetCandidateVer(self._pkg) + (VerFileIter,index) = ver.FileList.pop() + print len(VerFileIter) + print VerFileIter + return VerFileIter.Component + candidateOrigin = property(candidateOrigin) # depcache actions def markKeep(self): @@ -275,6 +283,7 @@ if __name__ == "__main__": print "Priority (Installed): %s " % pkg.installedPriority print "Installed: %s " % pkg.installedVersion print "Candidate: %s " % pkg.candidateVersion + print "CandiateOrigin: %s" % pkg.candidateOrigin print "SourcePkg: %s " % pkg.sourcePackageName print "Section: %s " % pkg.section print "Summary: %s" % pkg.summary |
