Merge ~xnox/ubuntu-archive-tools:sru-release-use-move into ubuntu-archive-tools:main

Proposed by Dimitri John Ledkov
Status: Needs review
Proposed branch: ~xnox/ubuntu-archive-tools:sru-release-use-move
Merge into: ubuntu-archive-tools:main
Diff against target: 27 lines (+3/-3)
1 file modified
sru-release (+3/-3)
Reviewer Review Type Date Requested Status
Ubuntu Package Archive Administrators Pending
Review via email: mp+456607@code.launchpad.net

Commit message

sru-release: mimick britney when releasing packages to release & updates pockets

When britney releases packages from proposed to updates, it uses move
operation to also delete packages from proposed. Ensure that
sru-release uses the same flag. This removes the need to later execute
`remove-package -y -m "moved to -updates" -s mantic-proposed -e
2.2.6-1ubuntu1.2 firmware-sof`. Note additional copies to devel & to
security will continue to work by version number as well. Or should be
executed as copies from -updates to -security & devel.

To post a comment you must log in.

Unmerged commits

8b48b7a... by Dimitri John Ledkov

sru-release: mimick britney when releasing packages to release & updates pockets

When britney releases packages from proposed to updates, it uses move
operation to also delete packages from proposed. Ensure that
sru-release uses the same flag. This removes the need to later execute
`remove-package -y -m "moved to -updates" -s mantic-proposed -e
2.2.6-1ubuntu1.2 firmware-sof`. Note additional copies to devel & to
security will continue to work by version number as well. Or should be
executed as copies from -updates to -security & devel.

Signed-off-by: Dimitri John Ledkov <email address hidden>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/sru-release b/sru-release
2index 5295372..036ac84 100755
3--- a/sru-release
4+++ b/sru-release
5@@ -312,7 +312,7 @@ def release_packages(options, packages):
6 else:
7 if options.release:
8 # -proposed -> release
9- copy(to_pocket='Release', to_series=release)
10+ copy(to_pocket='Release', to_series=release, move=True)
11 print('Copied to %s' % release)
12 else:
13 # -proposed -> -updates
14@@ -324,11 +324,11 @@ def release_packages(options, packages):
15 # instead of doing direct pocket copies.
16 packages_to_britney[pkg] = versions['proposed']
17 else:
18- copy(to_pocket='Updates', to_series=release,
19+ copy(to_pocket='Updates', to_series=release, move=True,
20 phased_update_percentage=options.percentage)
21 print('Copied to %s-updates' % release)
22 else:
23- copy(to_pocket='Updates', to_series=release)
24+ copy(to_pocket='Updates', to_series=release, move=True)
25 print('Copied to %s-updates' % release)
26
27 # -proposed -> -security

Subscribers

People subscribed via source and target branches