Commit 412fbe24 authored by Michael Vogt's avatar Michael Vogt

* small fixes in the new Origin.trusted code

parent 0b33dd41
......@@ -246,9 +246,10 @@ class Package(object):
indexfile = pkg._list.FindIndex(VerFileIter)
if indexfile and indexfile.IsTrusted:
self.trusted = True
self.trusted = False
else:
self.trusted = False
def __repr__(self):
return "component: '%s' archive: '%s' origin: '%s' label: %s" \
return "component: '%s' archive: '%s' origin: '%s' label: '%s' " \
"site '%s' isTrusted: '%s'"% (self.component, self.archive,
self.origin, self.label,
self.site, self.trusted)
......@@ -259,7 +260,7 @@ class Package(object):
return None
origins = []
for (verFileIter,index) in ver.FileList:
origins.append(self.Origin(pkg, verFileIter))
origins.append(self.Origin(self, verFileIter))
return origins
candidateOrigin = property(candidateOrigin)
......
......@@ -10,7 +10,7 @@ python-apt (0.6.16) unstable; urgency=low
* added support for pkgIndexFile and added SourcesList.FindIndex()
* added "trusted" to the Origin class
--
-- Michael Vogt <michael.vogt@ubuntu.com> Thu, 5 Jan 2006 00:56:36 +0100
python-apt (0.6.15) unstable; urgency=low
......
......@@ -8,7 +8,7 @@ sources.ReadMainList()
cache = apt_pkg.GetCache()
depcache = apt_pkg.GetDepCache(cache)
pkg = cache["bzr"]
pkg = cache["libimlib2"]
cand = depcache.GetCandidateVer(pkg)
for (f,i) in cand.FileList:
index = sources.FindIndex(f)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment