Get .deb changelogs via URL does not show the right result

Asked by Thomas Bechtold

I have a script (https://github.com/toabctl/ubuntu-package-changelog/blob/main/ubuntu_package_changelog/__init__.py ) to get a .deb package changelog via the launchpad API.
I'm running that script currently against the linux-gkeop package:

$ ubuntu-package-changelog --entries=1 focal Updates linux-gkeop
https://staging.launchpad.net/ubuntu/+archive/primary/+sourcepub/13670031/+files/changelog
linux-gkeop (5.4.0-1046.48) focal; urgency=medium

  [ Ubuntu: 5.4.0-117.132 ]

  * CVE-2022-1966
    - netfilter: nf_tables: add nft_set_elem_expr_alloc()
    - netfilter: nf_tables: disallow non-stateful expression in sets earlier

 -- Thadeu Lima de Souza Cascardo <email address hidden> Fri, 03 Jun 2022 16:57:38 -0300

But that is not the correct result. Looking at https://launchpad.net/ubuntu/+source/linux-gkeop, the latest version in the changelog should be 5.4.0-1048.51.

I wonder why the url uses staging.launchpad.net because I use "production" in the script when creating the LP client.

Any hints?

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
William Grant Edit question
Solved by:
William Grant
Solved:
Last query:
Last reply:
Revision history for this message
Best William Grant (wgrant) said :
#1

The login_anonymously call in that script is buggy: it's passing "production" as the consumer_name argument, not as the service_root, so the staging default is used.

Revision history for this message
Thomas Bechtold (toabctl) said :
#2

Thanks William Grant, that solved my question.