summarylogtreecommitdiffstats
path: root/amar.py
diff options
context:
space:
mode:
authorElrondo462017-11-25 17:16:36 +0100
committerElrondo462017-11-25 17:16:36 +0100
commit175839b329fcd9261adcecc1ab0d72c85904d419 (patch)
tree4ea8d9c2bc0f6262a0cf754d466e1e3577c4a0a0 /amar.py
parent4c9044d2c463b015d1ce2309fdeba14644a5bdb3 (diff)
downloadaur-175839b329fcd9261adcecc1ab0d72c85904d419.tar.gz
Update to 1.5 REACTIVE AMAR IS REQUIRED
Diffstat (limited to 'amar.py')
-rw-r--r--amar.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/amar.py b/amar.py
index c2d797fc5045..4647b95316c6 100644
--- a/amar.py
+++ b/amar.py
@@ -33,14 +33,14 @@ try:
with open(pacmanfichier, 'r') as searchfile:
for line in searchfile:
#Si la chaîne '[AMAR]' est écrit quelque part dans pacman.conf, alors le dépôt est activé et on met etatamar = 1.
- if '[AMAR]' in line:
+ if 'amar.conf' in line:
etatamar = 1
searchfile.close()
except OSError:
print("pacman.conf non acessible, donnez le chemin vers votre fichier")
sys.exit(1)
-configamar = "\n#Do not disable AMAR manually if you use the app\n[AMAR]\nSigLevel = Never\nServer = https://amar.lagout.org/x86_64/\n"
+configamar = "\n#Do not disable AMAR manually if you use the app\nInclude = /etc/pacman.d/amar.conf\n"
def pressA():
A.config(state=DISABLED)
@@ -65,9 +65,7 @@ def pressB():
with open((pacmanfichier), "r") as f:
lines = f.readlines()
lines.remove("#Do not disable AMAR manually if you use the app\n")
- lines.remove("[AMAR]\n")
- lines.remove("SigLevel = Never\n")
- lines.remove("Server = https://amar.lagout.org/x86_64/\n")
+ lines.remove("Include = /etc/pacman.d/amar.conf\n")
with open((pacmanfichier), "w") as new_f:
for line in lines:
new_f.write(line)