Created
February 15, 2025 16:55
-
-
Save julian-klode/59e98773d763c9a031eb2522f11d4353 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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