Skip to content

Instantly share code, notes, and snippets.

@julian-klode
Created February 15, 2025 16:55
Show Gist options
  • Save julian-klode/59e98773d763c9a031eb2522f11d4353 to your computer and use it in GitHub Desktop.
Save julian-klode/59e98773d763c9a031eb2522f11d4353 to your computer and use it in GitHub Desktop.
from launchpadlib.launchpad import Launchpad
launchpad = Launchpad.login_with("tsimonq2's pending PPA check", "production", version="devel")
ubuntu = launchpad.distributions["ubuntu"]
lubuntu_ci = launchpad.people["deity"]
proposed = lubuntu_ci.getPPAByName(distribution=ubuntu, name="testing")
ready = set()
for binary in proposed.getPublishedBinaries(status="Published", binary_name="libapt-pkg7.0"):
if binary.binary_package_version == "2.9.29+exp1ppa1":
ready.add(binary.distro_arch_series.architecture_tag)
for source in proposed.getPublishedSources(status="Published", distro_series="https://api.launchpad.net/devel/ubuntu/plucky"):
for build in source.getBuilds():
if build.arch_tag not in ready:
continue
if build.can_be_retried:
print("Rebuilding", build.source_package_name, build.source_package_version, build.arch_tag)
build.retry()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment