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
=== modified file 'backport.py'
--- backport.py 2010-11-24 10:56:32 +0000
+++ backport.py 2011-11-15 21:37:34 +0000
@@ -48,21 +48,15 @@
48 apt_pkg.version_compare(latest[suite], version) >= 0):48 apt_pkg.version_compare(latest[suite], version) >= 0):
49 continue49 continue
50 latest[suite] = version50 latest[suite] = version
51 # sp.files not exposed via the API yet; see51 for sp_file in sp.sourceFileUrls():
52 # https://bugs.launchpad.net/bugs/39482752 sp_file = os.path.basename(sp_file)
53 changes_handle = urllib2.urlopen(sp.changesFileUrl())53 if sp_file.endswith('.dsc'):
54 try:
55 changes = deb822.Changes(changes_handle.read())
56 finally:
57 changes_handle.close()
58 for sp_file in changes['files']:
59 if sp_file['name'].endswith('.dsc'):
60 if name.startswith('lib') and len(name) > 3:54 if name.startswith('lib') and len(name) > 3:
61 name_hash = name[:4]55 name_hash = name[:4]
62 else:56 else:
63 name_hash = name[0]57 name_hash = name[0]
64 dirname = 'pool/%s/%s/%s' % (sp.component_name, name_hash, name)58 dirname = 'pool/%s/%s/%s' % (sp.component_name, name_hash, name)
65 pkgs[suite] = (sp, '%s/%s' % (dirname, sp_file['name']))59 pkgs[suite] = (sp, '%s/%s' % (dirname, sp_file))
66 break60 break
6761
68 if latest['to'] is not None:62 if latest['to'] is not None:

Subscribers

People subscribed via source and target branches