summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-07-22 17:48:13 +0200
committerDan McGee <dan@archlinux.org>2011-08-02 14:25:09 +0200
commitb03b06cfd3afc95c328a166cfb8305a3df97819e (patch)
treed3e61ceba4344ad6242de581e99c07f32555a99f /test
parent6997a738bbca209cc6a8a29cdb71830bfb912f18 (diff)
downloadpacman-b03b06cfd3afc95c328a166cfb8305a3df97819e.tar.gz
pacman-b03b06cfd3afc95c328a166cfb8305a3df97819e.tar.xz
Implement parsing of the new SigLevel directive
Add code to conf.c that parses the new SigLevel directive. An overwhelming number of options are presented, but most users will still be fine with the Never/Optional/Required trio. More advanced users can combine these or any of the other options on a 'SigLevel = ' line, which is parsed in a left-to-right fashion and flags turned on and off accordingly. For example, all three of these will net the same config: SigLevel = Required PackageOptional SigLevel = Optional DatabaseRequired SigLevel = DatabaseRequired PackageOptional Additionally, database-specific lines assume you wish to start with any global default that has been set. For example, if any of the above lines were in the [options] section, something such as: SigLevel = PackageRequired PackageAllowMarginal Would continue to enforce required database signatures. Inspiration-by: Kerrick Staley <mail@kerrickstaley.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test')
-rw-r--r--test/pacman/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pacman/util.py b/test/pacman/util.py
index dbe416f2..60dea9e8 100644
--- a/test/pacman/util.py
+++ b/test/pacman/util.py
@@ -118,7 +118,7 @@ def mkcfgfile(filename, root, option, db):
if key != "local":
value = db[key]
data.append("[%s]\n" \
- "VerifySig = %s\n" \
+ "SigLevel = %s\n" \
"Server = file://%s" \
% (value.treename, value.getverify(), \
os.path.join(root, SYNCREPO, value.treename)))