summaryrefslogtreecommitdiff
path: root/UpdateManager
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 /UpdateManager
parentc16f7ef52793f5fa6369c149f8a9f1fb5a862a6b (diff)
downloadpython-apt-4129cac86f10b8fd1948be4ab1f5049e1bd322f7.tar.gz
* make sure to get the section of the candidate when calculating the changelog uri
Diffstat (limited to 'UpdateManager')
-rw-r--r--UpdateManager/UpdateManager.py7
1 files changed, 4 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]