Owned by Steve Beattie
Get this repository:
git clone https://git.launchpad.net/~sbeattie/ubuntu-qa-tools
Only Steve Beattie can upload to this repository. If you are Steve Beattie please log in for upload directions.


Name Last Modified Last Commit
unembargo-milestone-fixups 2022-08-04 22:58:19 UTC
unembargo: separate out milestone lookup into function

Author: Steve Beattie
Author Date: 2022-08-04 17:03:39 UTC

unembargo: separate out milestone lookup into function

The recent change

  0c2430a ("unembargo: Check and warn for any pending milestones")

ended up re-assigning to the same `series` variable, breaking package
publications for multiple source packges:

  $UQT/security-tools/unembargo -n --ppa=ubuntu-security-proposed/ppa openjdk-8 openjdk-lts openjdk-17 openjdk-18
  Loading Ubuntu Distribution ...
  Loading Ubuntu Archive ...
  Loading ubuntu-security-proposed 'ppa' PPA ...
  Locating openjdk-8 ...
  WARNING: jammy is approaching milestone ubuntu-22.04.1 (due 2022-08-04)
  NOTE: Please coordinate with the #ubuntu-release team before releasing.
  NOTE: To override this check and publish anyway please use the --force.
  NOTE: unembargo for jammy will be skipped.
          Want to publish openjdk-8 8u342-b07-0ubuntu1~20.04 to ubuntu/primary focal (Security)...
          Want to publish openjdk-8 8u342-b07-0ubuntu1~18.04 to ubuntu/primary bionic (Security)...
  Locating openjdk-lts ...
  Traceback (most recent call last):
    File "/home/steve/git/ubuntu-qa-tools/security-tools/unembargo", line 146, in <module>
      if len(series) > 0:
  TypeError: object of type 'Entry' has no len()

Fix this by moving the lookup of milestones to a separate function, so
that any variables set there won't pollute the global namespace. Also it
makes it easier to isolate the milestone lookup for future improvements.

v2: rename milestone discovery function to `pending_milestone()`

Signed-off-by: Steve Beattie <steve.beattie@canonical.com>
MR: https://code.launchpad.net/~sbeattie/ubuntu-qa-tools/+git/ubuntu-qa-tools-1/+merge/427845

11 of 1 result
This repository contains Public information 
Everyone can see this information.