diff --git a/cnchi b/cnchi new file mode 120000 index 000000000..a38b36c15 --- /dev/null +++ b/cnchi @@ -0,0 +1 @@ +/home/karasu/antergos/cnchi \ No newline at end of file diff --git a/src/cnchi.py b/src/cnchi.py index 34a927e02..2498806e6 100644 --- a/src/cnchi.py +++ b/src/cnchi.py @@ -434,6 +434,27 @@ def check_for_files(): return True +def enable_multilib(): + """ Enable multilib repo in /etc/pacman.conf """ + + # Check if it is enabled + with open("/etc/pacman.conf", 'rt') as pconf: + lines = pconf.readlines() + + enabled = False + for line in lines: + if line.startswith("[multilib]"): + enabled = True + break + + if not enabled: + logging.debug("Adding multilib repository to /etc/pacman.conf") + with misc.raised_privileges(): + with open("/etc/pacman.conf", 'at') as pconf: + pconf.write("[multilib]\n") + pconf.write("Include = /etc/pacman.d/mirrorlist\n\n") + + def init_cnchi(): """ This function initialises Cnchi """ @@ -477,6 +498,9 @@ def init_cnchi(): if not check_iso_version(): sys.exit(1) + # Workaround for bug in antergos-iso + enable_multilib() + # Init PyObject Threads threads_init() diff --git a/src/info.py b/src/info.py index 55f387dcf..df276a9bf 100755 --- a/src/info.py +++ b/src/info.py @@ -29,7 +29,7 @@ """ Set some Cnchi global constants """ -CNCHI_VERSION = "0.14.476" +CNCHI_VERSION = "0.14.477" CNCHI_WEBSITE = "http://www.antergos.com" CNCHI_RELEASE_STAGE = "production" diff --git a/update.info b/update.info index 0bd5573f7..4c07ff26f 100644 --- a/update.info +++ b/update.info @@ -1,2 +1,2 @@ -{"version":"0.14.476","files":[ +{"version":"0.14.477","files":[ ]}