Merge lp:~broder/ubuntu-archive-tools/backport-without-changes-file into lp:ubuntu-archive-tools

Proposed by Evan Broder
Status: Merged
Merged at revision: 309
Proposed branch: lp:~broder/ubuntu-archive-tools/backport-without-changes-file
Merge into: lp:ubuntu-archive-tools
Diff against target: 29 lines (+4/-10)
1 file modified
backport.py (+4/-10)
To merge this branch: bzr merge lp:~broder/ubuntu-archive-tools/backport-without-changes-file
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators Pending
Review via email: mp+82323@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'backport.py'
2--- backport.py 2010-11-24 10:56:32 +0000
3+++ backport.py 2011-11-15 21:37:34 +0000
4@@ -48,21 +48,15 @@
5 apt_pkg.version_compare(latest[suite], version) >= 0):
6 continue
7 latest[suite] = version
8- # sp.files not exposed via the API yet; see
9- # https://bugs.launchpad.net/bugs/394827
10- changes_handle = urllib2.urlopen(sp.changesFileUrl())
11- try:
12- changes = deb822.Changes(changes_handle.read())
13- finally:
14- changes_handle.close()
15- for sp_file in changes['files']:
16- if sp_file['name'].endswith('.dsc'):
17+ for sp_file in sp.sourceFileUrls():
18+ sp_file = os.path.basename(sp_file)
19+ if sp_file.endswith('.dsc'):
20 if name.startswith('lib') and len(name) > 3:
21 name_hash = name[:4]
22 else:
23 name_hash = name[0]
24 dirname = 'pool/%s/%s/%s' % (sp.component_name, name_hash, name)
25- pkgs[suite] = (sp, '%s/%s' % (dirname, sp_file['name']))
26+ pkgs[suite] = (sp, '%s/%s' % (dirname, sp_file))
27 break
28
29 if latest['to'] is not None:

Subscribers

People subscribed via source and target branches