Merge lp:~apw/ubuntu-archive-tools/esm-dest-archive-security into lp:ubuntu-archive-tools

Proposed by Andy Whitcroft
Status: Merged
Merged at revision: 1121
Proposed branch: lp:~apw/ubuntu-archive-tools/esm-dest-archive-security
Merge into: lp:ubuntu-archive-tools
Diff against target: 22 lines (+12/-0)
1 file modified
sru-release (+12/-0)
To merge this branch: bzr merge lp:~apw/ubuntu-archive-tools/esm-dest-archive-security
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators Pending
Review via email: mp+332366@code.launchpad.net

Description of the change

Treat an alternative PPA destination as the -security pocket so we report the real versions for the copy.

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 'sru-release'
2--- sru-release 2017-06-27 14:57:29 +0000
3+++ sru-release 2017-10-17 15:30:10 +0000
4@@ -122,6 +122,18 @@
5 if pocket in pub.pocket:
6 versions[pub.source_package_name]['changesfile'] = (
7 pub.changesFileUrl())
8+ # When the destination archive differs from the source scan that too.
9+ if dst_archive != src_archive:
10+ for pub in dst_archive.getPublishedSources(
11+ source_name=match.source_package_name, exact_match=True,
12+ status='Published', distro_series=series):
13+ key = 'security' # pub.pocket.lower()
14+ versions[pub.source_package_name][key] = (
15+ pub.source_package_version)
16+ if pocket in pub.pocket:
17+ versions[pub.source_package_name]['changesfile'] = (
18+ pub.changesFileUrl())
19+
20 # devel version
21 if devel_series:
22 for pub in src_archive.getPublishedSources(

Subscribers

People subscribed via source and target branches