Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-11-29 20:54:27 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-11-29 20:54:27 +0000
commit8814cb46977c78bf31a70fc5546f98452bc72e50 (patch)
treee416cdf39b50e878240abb51b9da89c8ca062da2 /archinstall
parent0102b86b0de278a9db6c6b77b7ec1a892fce2604 (diff)
Forgot to replace URL schemes from temporary path. #62
Diffstat (limited to 'archinstall')
-rw-r--r--archinstall/lib/profiles.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index 9d000d67..40089b2c 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -91,7 +91,7 @@ class Script():
def localize_path(self, profile_path):
if (url := urllib.parse.urlparse(profile_path)).scheme and url.scheme in ('https', 'http'):
if not self.converted_path:
- self.converted_path = f"/tmp/{self.profile}_{hashlib.md5(os.urandom(12)).hexdigest()}.py"
+ self.converted_path = f"/tmp/{os.path.basename(self.profile).replace('.py', '')}_{hashlib.md5(os.urandom(12)).hexdigest()}.py"
with open(self.converted_path, "w") as temp_file:
temp_file.write(urllib.request.urlopen(url).read().decode('utf-8'))