From d456b74c71ca1707e7b71de2ea164818d2ef4bd7 Mon Sep 17 00:00:00 2001
From: Jelle van der Waa <jelle@archlinux.org>
Date: Sun, 13 Jun 2021 18:36:03 +0200
Subject: [PATCH] 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.
---
 pycman/config.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/pycman/config.py b/pycman/config.py
index 123ddbd..601878d 100644
--- a/pycman/config.py
+++ b/pycman/config.py
@@ -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"]
-- 
GitLab