diff options
author | Dan McGee <dan@archlinux.org> | 2008-06-04 04:22:49 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-23 08:22:00 +0100 |
commit | 39da0198cd132bbb72be234b584bc62c88db33b6 (patch) | |
tree | 8cbc6f38e4158e67e4aad9cfec5ef8ff64fc539a | |
parent | 60159c2e77a499067e0b294fc9c6c182f225bee2 (diff) | |
download | pacman-39da0198cd132bbb72be234b584bc62c88db33b6.tar.gz pacman-39da0198cd132bbb72be234b584bc62c88db33b6.tar.xz |
Add PGP signature support to pactest
Allow pkg.pgpsig to end up in the created sync databases.
Signed-off-by: Dan McGee <dan@archlinux.org>
-rwxr-xr-x | test/pacman/pmdb.py | 4 | ||||
-rwxr-xr-x | test/pacman/pmpkg.py | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/pacman/pmdb.py b/test/pacman/pmdb.py index b31498a7..fefb135a 100755 --- a/test/pacman/pmdb.py +++ b/test/pacman/pmdb.py @@ -150,6 +150,8 @@ class pmdb(object): pkg.size = int(fd.readline().strip("\n")) elif line == "%MD5SUM%": pkg.md5sum = fd.readline().strip("\n") + elif line == "%PGPSIG%": + pkg.pgpsig = fd.readline().strip("\n") elif line == "%REPLACES%": pkg.replaces = _getsection(fd) elif line == "%DEPENDS%": @@ -241,6 +243,8 @@ class pmdb(object): data.append(_mksection("CSIZE", pkg.csize)) if pkg.md5sum: data.append(_mksection("MD5SUM", pkg.md5sum)) + if pkg.pgpsig: + data.append(_mksection("PGPSIG", pkg.pgpsig)) if data: data.append("") filename = os.path.join(path, "desc") diff --git a/test/pacman/pmpkg.py b/test/pacman/pmpkg.py index 73156ab2..ec51e5d4 100755 --- a/test/pacman/pmpkg.py +++ b/test/pacman/pmpkg.py @@ -47,6 +47,7 @@ class pmpkg(object): self.csize = 0 self.reason = 0 self.md5sum = "" # sync only + self.pgpsig = "" # sync only self.replaces = [] self.depends = [] self.optdepends = [] |