Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton.feeds+github@gmail.com>2020-08-20 19:56:58 +0000
committerAnton Hvornum <anton.feeds+github@gmail.com>2020-08-20 19:56:58 +0000
commitd449bb4b1f4a23b329454683e67d7d15eaf91cf7 (patch)
tree20f9c6c6aa60bed8f84417d0c00002ea8222ac97
parentf6f5875892e4ec6978323026b5f7819ddce1bb83 (diff)
Added the HTTPS POST for a successful build to the unattended test build.
-rw-r--r--archinstall/lib/profiles.py2
-rw-r--r--profiles/52-54-00-12-34-56.py13
2 files changed, 12 insertions, 3 deletions
diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py
index 2ed367b9..8715d632 100644
--- a/archinstall/lib/profiles.py
+++ b/archinstall/lib/profiles.py
@@ -112,7 +112,7 @@ class Profile():
# TODO: Remove
__builtins__['installation'] = self.installer
with instructions as runtime:
- log(f'Profile {self._path} finished successfully.', bg='black', fg='green')
+ log(f'{self} finished successfully.', bg='black', fg='green')
return True
diff --git a/profiles/52-54-00-12-34-56.py b/profiles/52-54-00-12-34-56.py
index 6a3639c7..6e823360 100644
--- a/profiles/52-54-00-12-34-56.py
+++ b/profiles/52-54-00-12-34-56.py
@@ -1,4 +1,6 @@
-import archinstall, getpass
+import archinstall
+import json
+import urllib.request
# Unmount and close previous runs
archinstall.sys_command(f'umount -R /mnt', surpress_errors=True)
@@ -29,4 +31,11 @@ with archinstall.Filesystem(harddrive, archinstall.GPT) as fs:
installation.user_create('anton', 'test')
installation.user_set_pw('root', 'toor')
- installation.add_AUR_support() \ No newline at end of file
+ installation.add_AUR_support()
+
+
+ conditions = {"profile" : "52-54-00-12-34-56", "status" : "successful"}
+ req = urllib.request.Request("https://archlinux.life/build/successful",
+ data=json.dumps(conditions).encode('utf8'),
+ headers={'content-type': 'application/json'})
+ urllib.request.urlopen(req) \ No newline at end of file