summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt/package.py7
-rw-r--r--debian/changelog2
-rw-r--r--doc/examples/indexfile.py2
3 files changed, 6 insertions, 5 deletions
diff --git a/apt/package.py b/apt/package.py
index c9a73597..019bf44c 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -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)
diff --git a/debian/changelog b/debian/changelog
index f00d90b3..0591ce09 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -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
diff --git a/doc/examples/indexfile.py b/doc/examples/indexfile.py
index e7f81e61..5eaab517 100644
--- a/doc/examples/indexfile.py
+++ b/doc/examples/indexfile.py
@@ -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)