[Pkg-privacy-commits] [tails-installer] 12/24: Remove get_releases.py, which got migrated into liveusb/releases.py
anonym
anonym-tails-guest at moszumanska.debian.org
Thu Jan 12 15:14:47 UTC 2017
This is an automated email from the git hooks/post-receive script.
anonym-tails-guest pushed a commit to annotated tag 3.12.1
in repository tails-installer.
commit 681f8c835345fec79e0751a6314d145605fa6ea0
Author: Luke Macken <lmacken at redhat.com>
Date: Wed Jan 29 12:09:00 2014 -0700
Remove get_releases.py, which got migrated into liveusb/releases.py
---
get_releases.py | 41 -----------------------------------------
1 file changed, 41 deletions(-)
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())
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git
More information about the Pkg-privacy-commits
mailing list