mirror of
https://github.com/moparisthebest/pacman
synced 2025-03-01 01:41:52 -05:00
pmdb.py: change siglevel name to Required
"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@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
dd694f433b
commit
80d3709e65
@ -69,7 +69,7 @@ class pmdb(object):
|
|||||||
return "%s" % self.treename
|
return "%s" % self.treename
|
||||||
|
|
||||||
def getverify(self):
|
def getverify(self):
|
||||||
for value in ("Always", "Never", "Optional"):
|
for value in ("Required", "Never", "Optional"):
|
||||||
if value in self.treename:
|
if value in self.treename:
|
||||||
return value
|
return value
|
||||||
return "Never"
|
return "Never"
|
||||||
|
@ -2,7 +2,7 @@ self.description = "Verify a signature in a sync DB (failure)"
|
|||||||
|
|
||||||
sp = pmpkg("pkg1")
|
sp = pmpkg("pkg1")
|
||||||
sp.pgpsig = "iEYEABECAAYFAkhMOggACgkQXC5GoPU6du2WVQCffVxF8GKXJIY4juJBIw/ljLrQxygAnj2QlvsUd7MdFekLX18+Ov/xzgZ1"
|
sp.pgpsig = "iEYEABECAAYFAkhMOggACgkQXC5GoPU6du2WVQCffVxF8GKXJIY4juJBIw/ljLrQxygAnj2QlvsUd7MdFekLX18+Ov/xzgZ1"
|
||||||
self.addpkg2db("sync+Always", sp)
|
self.addpkg2db("sync+Required", sp)
|
||||||
|
|
||||||
self.args = "-S %s" % sp.name
|
self.args = "-S %s" % sp.name
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user