diff options
author | Xavier Chantry <shiningxc@gmail.com> | 2008-12-17 11:55:07 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-23 09:35:50 +0100 |
commit | f9505063f804b9e1c736299b2387e1ddfbdc4f97 (patch) | |
tree | e5659dcc137e3e1e2ea6811475f12b9d108b7b6e /test/pacman/pmdb.py | |
parent | 18c69469618fef612a74ee550e157a45fc099efc (diff) | |
download | pacman-f9505063f804b9e1c736299b2387e1ddfbdc4f97.tar.gz pacman-f9505063f804b9e1c736299b2387e1ddfbdc4f97.tar.xz |
Added gpg verification options per repo to the config file.
Once we do this, add support for VerifySig to pactest. We just check if
the repo name contains Always, Never or Optional to determine the value
of VerifySig. The default is Never. pacman uses Always by default but
this is not suitable for pactest.
Original-work-by: shankar <jatheendra@gmail.com>
Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test/pacman/pmdb.py')
-rwxr-xr-x | test/pacman/pmdb.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/pacman/pmdb.py b/test/pacman/pmdb.py index fefb135a..1af24ae9 100755 --- a/test/pacman/pmdb.py +++ b/test/pacman/pmdb.py @@ -89,6 +89,12 @@ class pmdb(object): def __str__(self): return "%s" % self.treename + def getverify(self): + for value in "Always","Never","Optional": + if value in self.treename: + return value + return "Never" + def getpkg(self, name): """ """ |