Re: API endpoint listing ISOs and checksums for Fedora releases and Rawhide?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 12, 2021 at 3:26 PM Adam Williamson
<adamwill@xxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux