Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-11-29 21:26:39 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-11-29 21:26:39 +0000
commitc4cfa26f59107b46b18128adf9f8375e47dbc3ec (patch)
tree4e39c9ceb8bdafa6034f94fe25dae69799ef332c /archinstall/lib
parent5ec520f461e578589677d70aead0de96a3ba438e (diff)
Forgot to call .geturl() on urlparse object.
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/profiles.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index 67f077dc..911fc9e5 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -93,9 +93,8 @@ class Script():
if not self.converted_path:
self.converted_path = f"/tmp/{os.path.basename(self.profile).replace('.py', '')}_{hashlib.md5(os.urandom(12)).hexdigest()}.py"
- print('Opening URL:', url)
with open(self.converted_path, "w") as temp_file:
- temp_file.write(urllib.request.urlopen(url).read().decode('utf-8'))
+ temp_file.write(urllib.request.urlopen(url.geturl()).read().decode('utf-8'))
return self.converted_path
else: