summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-10-01 20:09:25 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2007-10-01 20:09:25 +0200
commit45683c5ac4ddfc89f243217aabec546f343f355d (patch)
tree9579b49c7e334cdc30662021b9e0e42a0b5f92f3
parent99f2df941c9b43bc44b02aba43ddcb6463ad129b (diff)
parent14eafeeba30ccb31676769d708ad0aa681fab219 (diff)
downloadpython-apt-45683c5ac4ddfc89f243217aabec546f343f355d.tar.gz
* apt/package.py:
- fix apt.package.Dependency.relation initialization
-rw-r--r--apt/package.py2
-rw-r--r--debian/changelog7
-rw-r--r--doc/examples/acquire.py3
3 files changed, 9 insertions, 3 deletions
diff --git a/apt/package.py b/apt/package.py
index 4524a47d..49aadd20 100644
--- a/apt/package.py
+++ b/apt/package.py
@@ -135,7 +135,7 @@ class Package(object):
for depVerList in depends[t]:
base_deps = []
for depOr in depVerList:
- base_deps.append(BaseDependency(depOr.TargetPkg.Name, depOr.TargetVer, depOr.CompType, (t == "PreDepends")))
+ base_deps.append(BaseDependency(depOr.TargetPkg.Name, depOr.CompType, depOr.TargetVer, (t == "PreDepends")))
depends_list.append(Dependency(base_deps))
return depends_list
diff --git a/debian/changelog b/debian/changelog
index c3d9041c..ae92f124 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+python-apt (0.7.3.1ubuntu2) gutsy; urgency=low
+
+ * apt/package.py:
+ - fix apt.package.Dependency.relation initialization
+
+ -- Michael Vogt <michael.vogt@ubuntu.com> Mon, 01 Oct 2007 20:08:47 +0200
+
python-apt (0.7.3.1ubuntu1) gutsy; urgency=low
* python/metaindex.cc:
diff --git a/doc/examples/acquire.py b/doc/examples/acquire.py
index a0790c98..1291dbfa 100644
--- a/doc/examples/acquire.py
+++ b/doc/examples/acquire.py
@@ -45,7 +45,7 @@ fetcher = apt_pkg.GetAcquire(progress)
pm = apt_pkg.GetPackageManager(depcache)
pm.GetArchives(fetcher,list,recs)
print "%s (%s)" % (apt_pkg.SizeToStr(fetcher.FetchNeeded), fetcher.FetchNeeded)
-
+actiongroup = apt_pkg.GetPkgActionGroup(depcache)
for pkg in cache.Packages:
depcache.MarkKeep(pkg)
@@ -68,7 +68,6 @@ print pm
print fetcher
get_file(fetcher, "ftp://ftp.debian.org/debian/dists/README", "/tmp/lala")
-sys.exit(1)
pm.GetArchives(fetcher,list,recs)