From 4129cac86f10b8fd1948be4ab1f5049e1bd322f7 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 19 Apr 2006 13:56:53 +0200 Subject: * make sure to get the section of the candidate when calculating the changelog uri --- UpdateManager/UpdateManager.py | 7 ++++--- debian/changelog | 2 ++ 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) -- -- cgit v1.2.3