Verified Commit d456b74c authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Architectures is as of pacman 6 a list

Architectures are now a list and pyalpm's pycman was not able to handle
this. For backwards compatibility convert a string to a list.
parent 6af848a3
......@@ -218,9 +218,11 @@ class PacmanConfig(object):
# File paths
h.logfile = self.options["LogFile"]
h.gpgdir = self.options["GPGDir"]
# Strings
h.arch = self.options["Architecture"]
# Lists
arch = self.options["Architecture"]
if isinstance(arch, str):
arch = [arch]
h.arch = arch
h.cachedirs = self.options["CacheDir"]
if "NoUpgrade" in self.options:
h.noupgrades = self.options["NoUpgrade"]
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment