Skip to content
Snippets Groups Projects
Verified Commit d456b74c authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
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
No related branches found
Tags 0.10.3
No related merge requests found
......@@ -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"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment