Skip to content
This repository has been archived by the owner on May 22, 2019. It is now read-only.

Commit

Permalink
Workaround for bug in antergos-iso (multilib is not enabled)
Browse files Browse the repository at this point in the history
  • Loading branch information
karasu committed Sep 9, 2018
1 parent 0dd7b1b commit 7a163d8
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You are viewing the `0.15.x` branch (development).
|Development Stage|Branch|Version| Code Status|
----------------- | -------------- | -------------- | -------- |
|Cnchi Stable|0.14.x|![0.14.473](https://img.shields.io/github/release/antergos/cnchi.svg)|Frozen|
|Cnchi Development|0.15.x|![0.15.347](https://img.shields.io/github/release/antergos/cnchi/all.svg)|Development|
|Cnchi Development|0.15.x|![0.15.348](https://img.shields.io/github/release/antergos/cnchi/all.svg)|Development|
|Cnchi Next (UI agnostic)|master|0.17.x|Development|

## Usage:
Expand Down
24 changes: 24 additions & 0 deletions src/cnchi.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ def __init__(self):
if not self.check_iso_version():
sys.exit(1)

# Enables multilib repo only if it's not enabled
self.enable_multilib()

# Disable suspend to RAM
self.disable_suspend()

Expand Down Expand Up @@ -516,6 +519,27 @@ def check_for_files():

return True

@staticmethod
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 disable_suspend(self):
""" Disable gnome settings suspend to ram """
try:
Expand Down
2 changes: 1 addition & 1 deletion src/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

""" Set some Cnchi global constants """

CNCHI_VERSION = "0.15.347"
CNCHI_VERSION = "0.15.348"
""" Cnchi version """

CNCHI_WEBSITE = "http://www.antergos.com"
Expand Down
2 changes: 1 addition & 1 deletion update.info
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{"version":"0.15.347","files":[
{"version":"0.15.348","files":[
]}

0 comments on commit 7a163d8

Please sign in to comment.