On Tue, Oct 12, 2021 at 3:26 PM Adam Williamson <adamw...@fedoraproject.org> wrote: > Hanging over all of this is the threat that PDC might go away at some > point, which would be a bit of an inconvenience. In A World Where there > is no PDC, you have to grab the metadata files for composes that still > exist from kojipkgs; there is no record of the metadata for composes > that have been garbage-collected. For stable releases you'd have to > parse whatever metadata you can just out of the actual release tree on > the mirrors.
Yeah, PDC is a big liability to Fedora at this point and we should run away from it. Here's the code I use to download Rawhide images: get_rawhide_image_url(): # We don't have productmd data available, so we must download COMPOSE_ID # and interpolate that directly into the assumed URL. r = requests.get('https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/COMPOSE_ID') r.raise_for_status() compose_id = r.text.strip() _, _, numeric = compose_id.split('-') url = 'https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Cloud/x86_64/images/Fedora-Cloud-Base-Rawhide-%s.x86_64.qcow2' % numeric return url - Ken _______________________________________________ devel mailing list -- devel@lists.fedoraproject.org To unsubscribe send an email to devel-le...@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure