can't run anymore ubuntu-build --batch --retry from cmdline due to wrong login() call in Python
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-dev-tools (Debian) |
Fix Released
|
Unknown
|
|||
ubuntu-dev-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
New
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[impact]
ubuntu-build assumes the lpapicache Launchpad will default to login(), but it now defaults to anonymous login, which breaks ubuntu-build operation.
[test case]
ubuntu-build --batch --retry openimageio
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
can_retry = options.retry and me.canUploadPac
AttributeError: 'NoneType' object has no attribute 'canUploadPackage'
[regression potential]
failure and/or errors running ubuntu-build
[scope]
This is needed only for jammy and kinetic.
The default was changed from login() to login_anonymously() with commit cb865e3b8, which was first included in 0.179, so this bug does not exist in focal or earlier.
Related branches
- Mattia Rizzolo: Pending requested
-
Diff: 55 lines (+15/-10)2 files modifiedubuntu-build (+7/-4)
ubuntutools/lp/lpapicache.py (+8/-6)
description: | updated |
Changed in ubuntu-dev-tools (Debian): | |
status: | Unknown → Fix Released |
Can you check this test build to see if the patches from the MR fix this?
https:/ /launchpad. net/~ddstreet/ +archive/ ubuntu/ ubuntu- dev-tools