diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-05-08 17:01:29 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-05-08 17:01:29 +0200 |
| commit | 86a440cee9a1d87aba9acf646f1266e5c1d5979b (patch) | |
| tree | 383ff23c2f518af4824e999f674be78a06e8a408 /UpdateManager/UpdateManager.py | |
| parent | 46f7c83e85e5d57f6e568cd4d9e6c3bd0ef92ec5 (diff) | |
| download | python-apt-86a440cee9a1d87aba9acf646f1266e5c1d5979b.tar.gz | |
* UpdateManager/UpdateManager.py:
- use version and section of the source package when calculating the
changelog uri
Diffstat (limited to 'UpdateManager/UpdateManager.py')
| -rw-r--r-- | UpdateManager/UpdateManager.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index 390f569d..3f556aea 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -99,6 +99,11 @@ class MyCache(apt.Cache): # get the src package name srcpkg = pkg.sourcePackageName + + # assume "main" section + src_section = "main" + # use the section of the candidate as a starting point + section = pkg._depcache.GetCandidateVer(pkg._pkg).Section # get the source version, start with the binaries version srcver = pkg.candidateVersion @@ -110,16 +115,15 @@ class MyCache(apt.Cache): if srcrec: srcver = srcrecords.Version #print "srcver: %s" % srcver + section = srcrecords.Section + #print "srcsect: %s" % section except SystemError, e: # catch errors and ignore them, # this feature only works if deb-src are in the sources.list # otherwise we fall back to the binary version number pass - # assume "main" section - src_section = "main" - # make sure to get the section of the candidate - section = pkg._depcache.GetCandidateVer(pkg._pkg).Section + l = section.split("/") if len(l) > 1: src_section = l[0] |
