summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-22 13:58:07 -0500
committerDan McGee <dan@archlinux.org>2011-06-24 01:36:47 -0500
commita8c3202836014908b95df7d294d2e309faf4b2a0 (patch)
tree7fad583aedd3f80b9f37e98fc8e6d74cc299cec0 /test
parentf12ead2cf278d4a9b330d0d320733960fc750e96 (diff)
downloadpacman-a8c3202836014908b95df7d294d2e309faf4b2a0.tar.xz
pactest: add isize attribute, fix url attribute
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'test')
-rwxr-xr-xtest/pacman/pmdb.py6
-rwxr-xr-xtest/pacman/pmpkg.py1
2 files changed, 5 insertions, 2 deletions
diff --git a/test/pacman/pmdb.py b/test/pacman/pmdb.py
index 1af24ae9..9d10df63 100755
--- a/test/pacman/pmdb.py
+++ b/test/pacman/pmdb.py
@@ -232,9 +232,9 @@ class pmdb(object):
data.append(_mksection("CONFLICTS", pkg.conflicts))
if pkg.provides:
data.append(_mksection("PROVIDES", pkg.provides))
+ if pkg.url:
+ data.append(_mksection("URL", pkg.url))
if self.treename == "local":
- if pkg.url:
- data.append(_mksection("URL", pkg.url))
if pkg.installdate:
data.append(_mksection("INSTALLDATE", pkg.installdate))
if pkg.size:
@@ -247,6 +247,8 @@ class pmdb(object):
data.append(_mksection("REPLACES", pkg.replaces))
if pkg.csize:
data.append(_mksection("CSIZE", pkg.csize))
+ if pkg.isize:
+ data.append(_mksection("ISIZE", pkg.isize))
if pkg.md5sum:
data.append(_mksection("MD5SUM", pkg.md5sum))
if pkg.pgpsig:
diff --git a/test/pacman/pmpkg.py b/test/pacman/pmpkg.py
index 4568adb9..3d2a6cf4 100755
--- a/test/pacman/pmpkg.py
+++ b/test/pacman/pmpkg.py
@@ -45,6 +45,7 @@ class pmpkg(object):
self.packager = ""
self.size = 0
self.csize = 0
+ self.isize = 0
self.reason = 0
self.md5sum = "" # sync only
self.pgpsig = "" # sync only