summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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