[pacman-dev] [PATCH] pmdb.py: change siglevel name to Required

Andrew Gregory andrew.gregory.8 at gmail.com
Sat Apr 26 19:22:25 EDT 2014


"Always" is not a valid siglevel.  sign002.py was succeeding because
pacman failed to parse the resulting config file rather than a failed
signature check.

Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
 test/pacman/pmdb.py          | 2 +-
 test/pacman/tests/sign002.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/test/pacman/pmdb.py b/test/pacman/pmdb.py
index 1d9d735..a6cf78f 100644
--- a/test/pacman/pmdb.py
+++ b/test/pacman/pmdb.py
@@ -69,7 +69,7 @@ def __str__(self):
         return "%s" % self.treename
 
     def getverify(self):
-        for value in ("Always", "Never", "Optional"):
+        for value in ("Required", "Never", "Optional"):
             if value in self.treename:
                 return value
         return "Never"
diff --git a/test/pacman/tests/sign002.py b/test/pacman/tests/sign002.py
index b55f331..58c4441 100644
--- a/test/pacman/tests/sign002.py
+++ b/test/pacman/tests/sign002.py
@@ -2,7 +2,7 @@
 
 sp = pmpkg("pkg1")
 sp.pgpsig = "iEYEABECAAYFAkhMOggACgkQXC5GoPU6du2WVQCffVxF8GKXJIY4juJBIw/ljLrQxygAnj2QlvsUd7MdFekLX18+Ov/xzgZ1"
-self.addpkg2db("sync+Always", sp)
+self.addpkg2db("sync+Required", sp)
 
 self.args = "-S %s" % sp.name
 
-- 
1.9.2



More information about the pacman-dev mailing list