Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
List overview
Download
liveusb-creator
January 2014
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
liveusb-creator@lists.stg.fedorahosted.org
1 participants
1 discussions
Start a n
N
ew thread
Branch 'develop' - 4 commits - get_releases.py liveusb/releases.py
by Luke Macken
29 Jan '14
29 Jan '14
get_releases.py | 41 --------------------------- liveusb/releases.py | 78 ++++++++++++++++++++++------------------------------ 2 files changed, 34 insertions(+), 85 deletions(-) New commits: commit 89e1c77ad5d736631f13937574eea5dfef0742ac Author: Adam Williamson <awilliam(a)redhat.com> Date: Wed Jan 29 15:55:17 2014 -0800 Fix the filename parsing when retrieving available images from dl.fp.o Cutting off 6 characters from the end instead of 4 drops the rather useless trailing -1 (it's an artifact of Koji-based building of lives, AIUI). The chunks.pop / chunks.insert dodge takes the last field from the filename after trimming and splitting (which is the release version, and hopefully will stay that way for a bit...) and puts it into the list at position 1. So this is only dependent on the *last* field always being the release, and the *first* field always being the distribution name - other fields can jiggle around and this will still DTRT. diff --git a/liveusb/releases.py b/liveusb/releases.py index a418cef..db37385 100644 --- a/liveusb/releases.py +++ b/liveusb/releases.py @@ -73,8 +73,10 @@ def get_fedora_releases(): if filename[0] != '*': continue filename = filename[1:] - chunks = filename[:-4].split('-') + chunks = filename[:-6].split('-') chunks.remove('Live') + release = chunks.pop() + chunks.insert(1,release) name = ' '.join(chunks) fedora_releases.append(dict( name=name, commit a94a804e67e2a148ccce50c41790ad8b48b76fd1 Author: Adam Williamson <awilliam(a)redhat.com> Date: Wed Jan 29 12:27:41 2014 -0800 update the static release list to F19+F20 We probably should add the other spins as well as SoaS, but I'll put that in a separate commit. diff --git a/liveusb/releases.py b/liveusb/releases.py index 7f9e176..a418cef 100644 --- a/liveusb/releases.py +++ b/liveusb/releases.py @@ -7,42 +7,30 @@ ARCHES = ('armhfp', 'x86_64', 'i686', 'i386') # A backup list of releases, just in case we can't fetch them. fedora_releases = [ - {'name': 'Fedora 18 i686 Desktop', - 'sha256': '7c7f453c15a5d13df95bf8caab6277e5aab1c6353eb242b1cf00344b61869d26', - 'url': '
http://dl.fedoraproject.org/pub/fedora/linux/releases/18/Live/i386/Fedora-1…
'}, - {'name': 'Fedora 18 i686 KDE', - 'sha256': 'f172192566d0e12c29a741a568a917c5d8643aa781fdf06598b12a217a58cb74', - 'url': '
http://dl.fedoraproject.org/pub/fedora/linux/releases/18/Live/i386/Fedora-1…
'}, - {'name': 'Fedora 18 x86_64 Desktop', - 'sha256': 'a276e06d244e04b765f0a35532d9036ad84f340b0bdcc32e0233a8fbc31d5bed', - 'url': '
http://dl.fedoraproject.org/pub/fedora/linux/releases/18/Live/x86_64/Fedora…
'}, - {'name': 'Fedora 18 x86_64 KDE', - 'sha256': '41d51d86ff5c272263285d00a0c3da7acbbce404b9930b0ff8bd7226e7248805', - 'url': '
http://dl.fedoraproject.org/pub/fedora/linux/releases/18/Live/x86_64/Fedora…
'}, - {'name': 'Fedora 17 i686 Desktop', - 'sha256': '26027f4d4686f1df186b31ce773dbb903db18f4b1aa37a1e37f0fa6ff4111f42', - 'url': '
http://dl.fedoraproject.org/pub/fedora/linux/releases/17/Live/i686/Fedora-1…
'}, - {'name': 'Fedora 17 i686 KDE', - 'sha256': 'f10142bb0a4d91a0d8320a925fa33ab3a87d9764b03137bb30506830c1068583', - 'url': '
http://dl.fedoraproject.org/pub/fedora/linux/releases/17/Live/i686/Fedora-1…
'}, - {'name': 'Fedora 17 x86_64 Desktop', - 'sha256': 'dfd19d677790fea6144bcf537cd031dfb0a50e6c56652c94bfc71ea7bb949f2c', - 'url': '
http://dl.fedoraproject.org/pub/fedora/linux/releases/17/Live/x86_64/Fedora…
'}, - {'name': 'Fedora 17 x86_64 KDE', - 'sha256': '58b9abf5ef6a07b75b6a934468c783ab18e5a1236e6e5ab75dc2b39ca7680462', - 'url': '
http://dl.fedoraproject.org/pub/fedora/linux/releases/17/Live/x86_64/Fedora…
'}, - {'name': 'Fedora 16 i686 Desktop', - 'sha256': '561d2c15fa79c319959cfc821650c829860651d1e5b125b2a425ac9cbd3fe1bb', - 'url': '
http://dl.fedoraproject.org/pub/fedora/linux/releases/16/Live/i686/Fedora-1…
'}, - {'name': 'Fedora 16 i686 KDE', - 'sha256': '822567e4b05f7be6b89c14e6165f4c9e0f388379c3f90e0bf439dd8397e87a3f', - 'url': '
http://dl.fedoraproject.org/pub/fedora/linux/releases/16/Live/i686/Fedora-1…
'}, - {'name': 'Fedora 16 x86_64 Desktop', - 'sha256': '632b2de39033ed1d4a61959c4002e07248793eff828ac5d60edbb7b5dcd7be5c', - 'url': '
http://dl.fedoraproject.org/pub/fedora/linux/releases/16/Live/x86_64/Fedora…
'}, - {'name': 'Fedora 16 x86_64 KDE', - 'sha256': 'b10ff86610e46244b11f0a411915e80ca4fdf1e8ec20ee5b61f700feb0716ba8', - 'url': '
http://dl.fedoraproject.org/pub/fedora/linux/releases/16/Live/x86_64/Fedora…
'}, + {'name': 'Fedora 20 x86_64 Desktop', + 'sha256': 'cc0333be93c7ff2fb3148cb29360d2453f78913cc8aa6c6289ae6823372a77d2', + 'url': '
http://dl.fedoraproject.org/pub/fedora/linux/releases/20/Live/x86_64/Fedora…
'}, + {'name': 'Fedora 20 x86_64 KDE', + 'sha256': '08360a253b4a40dff948e568dba1d2ae9d931797f57aa08576b8b9f1ef7e4745', + 'url': '
https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Live/x86_64/Fedor…
'}, + {'name': 'Fedora 20 i686 Desktop', + 'sha256': 'b115c5653b855de2353e41ff0c72158350f14a020c041462f35ba2a47bd1e33b', + 'url': '
https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Live/i386/Fedora-…
'}, + {'name': 'Fedora 20 i686 KDE', + 'sha256': 'd859132ea9496994ccbb5d6e60c9f40ae89ba31f8a4a1a2a883d6d45901de598', + 'url': '
https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Live/i386/Fedora-…
'}, + {'name': 'Fedora 19 x86_64 Desktop', + 'sha256': '21f0197284b9088b32d683f83a71bd42261f1df885a63b1eb87254d1ca096f12', + 'url': '
https://dl.fedoraproject.org/pub/fedora/linux/releases/19/Live/x86_64/Fedor…
'}, + {'name': 'Fedora 19 x86_64 KDE', + 'sha256': 'f4479d5639f62d7398722c6a432ba94711b80d5011d5b64e7afebb4f4ac10cf7', + 'url': '
https://dl.fedoraproject.org/pub/fedora/linux/releases/19/Live/x86_64/Fedor…
'}, + {'name': 'Fedora 19 i686 Desktop', + 'sha256': 'ce9797802ef1f7aa670fffd04f209631c171b8ded5dc26f61df898cb9441c839', + 'url': '
https://dl.fedoraproject.org/pub/fedora/linux/releases/19/Live/i386/Fedora-…
'}, + {'name': 'Fedora 19 i686 KDE', + 'sha256': 'e81717564f96ee0f8c6d8b0186e7fca44da57f2ef154ea427b6d765ea139a083', + 'url': '
https://dl.fedoraproject.org/pub/fedora/linux/releases/19/Live/i386/Fedora-…
'}, ] other_releases = [ @@ -50,14 +38,14 @@ other_releases = [ ## Custom spins ## { - 'name': 'Sugar on a Stick v7 Quandong (x86_64)', - 'url': '
http://dl.fedoraproject.org/pub/alt/releases/17/Spins/x86_64/Fedora-17-x86_…
', - 'sha256': 'e872932ff02f20adc76252fff5fa16717b10a6d91dbee779bf4792d36c939a28', + 'name': 'Sugar on a Stick v10 (x86_64)', + 'url': '
https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Live/x86_64/Fedor…
', + 'sha256': 'b1865e40e57ed5c4bb705f95e3190c5e56ca6ed9c34f53b16e8c45ccb1233be8', }, { - 'name': 'Sugar on a Stick v7 Quandong (i686)', - 'url': '
http://dl.fedoraproject.org/pub/alt/releases/17/Spins/i686/Fedora-17-i686-L…
', - 'sha256': '04a7824f36a4015985e328da450534a40a4babb0d0a2c8959e0bc9103b06721e', + 'name': 'Sugar on a Stick v10 (i686)', + 'url': '
https://dl.fedoraproject.org/pub/fedora/linux/releases/20/Live/i386/Fedora-…
', + 'sha256': 'efe76d842a7e19a5ee66461bf51a9cf649d426d007841a5f06f14851dceab389', }, ] commit 2608b8a402b35dacf3c12c9140e7cfc0223f448a Author: Luke Macken <lmacken(a)redhat.com> Date: Wed Jan 29 12:56:04 2014 -0700 Add armhfp to our fedora releases arch list, from pull #8 diff --git a/liveusb/releases.py b/liveusb/releases.py index ffa063a..7f9e176 100644 --- a/liveusb/releases.py +++ b/liveusb/releases.py @@ -3,7 +3,7 @@ from urlgrabber import urlread from urlgrabber.grabber import URLGrabError FEDORA_RELEASES = '
http://dl.fedoraproject.org/pub/fedora/linux/releases/
' -ARCHES = ('x86_64', 'i686', 'i386') +ARCHES = ('armhfp', 'x86_64', 'i686', 'i386') # A backup list of releases, just in case we can't fetch them. fedora_releases = [ commit 681f8c835345fec79e0751a6314d145605fa6ea0 Author: Luke Macken <lmacken(a)redhat.com> Date: Wed Jan 29 12:09:00 2014 -0700 Remove get_releases.py, which got migrated into liveusb/releases.py diff --git a/get_releases.py b/get_releases.py deleted file mode 100644 index a6a1b24..0000000 --- a/get_releases.py +++ /dev/null @@ -1,41 +0,0 @@ -import re -from urlgrabber import urlread -from urlgrabber.grabber import URLGrabError - -FEDORA_RELEASES = '
http://dl.fedoraproject.org/pub/fedora/linux/releases/
' -ARCHES = ('armhfp', 'i386', 'i686', 'x86_64') - -def get_fedora_releases(): - releases = [] - html = urlread(FEDORA_RELEASES) - for release in re.findall(r'<a href="(\d+)/">', html)[-2:][::-1]: - for arch in ARCHES: - arch_url = FEDORA_RELEASES + '%s/Live/%s/' % (release, arch) - try: - files = urlread(arch_url) - except URLGrabError: - continue - for link in re.findall(r'<a href="(.*)">', files): - if link.endswith('-CHECKSUM'): - checksum = urlread(arch_url + link) - for line in checksum.split('\n'): - try: - sha256, filename = line.split() - if filename[0] != '*': - continue - filename = filename[1:] - chunks = filename[:-4].split('-') - chunks.remove('Live') - name = ' '.join(chunks) - releases.append(dict( - name = name, - url = arch_url + filename, - sha256 = sha256, - )) - except ValueError: - pass - return releases - - -from pprint import pprint -pprint(get_fedora_releases())
1
0
0
0
Results per page:
10
25
50
100
200