Commit 332cae6f authored by Aaron Kling's avatar Aaron Kling

Use fork of fedoras kernel repo and fix up for reading from gitlab

parent de82afec
......@@ -29,7 +29,7 @@ srcs = []
class ConfigfilesHTMLParser(HTMLParser):
def handle_data(self, data):
if data.startswith("kernel-") and data != "kernel-local":
if data.startswith("kernel-") and data.endswith(".config") and data != "kernel-local":
srcs.append(data)
......@@ -52,7 +52,7 @@ class Options:
except LookupError:
print("Please fix https://github.com/gitpython-developers/GitPython/pull/57 before!")
sys.exit(1)
self.git_url = "http://pkgs.fedoraproject.org/cgit/rpms/kernel.git"
self.git_url = "http://gitlab.incom.co/webgeek1234/kernel"
self.prefix = None
self.format = "tar.gz"
self.patch = None
......@@ -79,7 +79,7 @@ class Options:
"mod-extra.sh", "mod-sign.sh", "remove-binary-diff.pl"]
def _get_configs(self):
tree = urlgrabber.urlread("{}/tree/".format(self.git_url))
tree = urlgrabber.urlread("{}/tree/master/".format(self.git_url))
parser = ConfigfilesHTMLParser()
parser.feed(tree)
for src in srcs:
......@@ -128,7 +128,7 @@ class Options:
def download_file(self, file_name):
pg = urlgrabber.progress.TextMeter()
urlgrabber.urlgrab("{}/plain/{}".format(self.git_url, file_name),
urlgrabber.urlgrab("{}/raw/master/{}".format(self.git_url, file_name),
"sources/{}".format(file_name), progress_obj=pg)
def download_sources(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment