summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-04-19 13:56:53 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-04-19 13:56:53 +0200
commit4129cac86f10b8fd1948be4ab1f5049e1bd322f7 (patch)
treefd438bb66037d8064c4f40cf88998e31ee6e6489
parentc16f7ef52793f5fa6369c149f8a9f1fb5a862a6b (diff)
downloadpython-apt-4129cac86f10b8fd1948be4ab1f5049e1bd322f7.tar.gz
* make sure to get the section of the candidate when calculating the changelog uri
-rw-r--r--UpdateManager/UpdateManager.py7
-rw-r--r--debian/changelog2
2 files changed, 6 insertions, 3 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py
index 49e2ddf5..ff77eddf 100644
--- a/UpdateManager/UpdateManager.py
+++ b/UpdateManager/UpdateManager.py
@@ -102,10 +102,11 @@ class MyCache(apt.Cache):
# assume "main" section
src_section = "main"
- # check if we have something else
- l = string.split(pkg.section,"/")
+ # make sure to get the section of the candidate
+ section = pkg._depcache.GetCandidateVer(pkg._pkg).Section
+ l = section.split("/")
if len(l) > 1:
- sec_section = l[0]
+ src_section = l[0]
# lib is handled special
prefix = srcpkg[0]
diff --git a/debian/changelog b/debian/changelog
index af2ff3e0..70b2813a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
update-manager (0.42.2ubuntu13) dapper; urgency=low
* po/POTFILES.in: add missing desktop file (ubuntu: #39410)
+ * UpdateManager/UpdateManager.py:
+ - fix in the get_changelog logic (ubuntu: #40058)
--