From a8c3202836014908b95df7d294d2e309faf4b2a0 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 22 Jun 2011 13:58:07 -0500 Subject: pactest: add isize attribute, fix url attribute Signed-off-by: Dan McGee --- test/pacman/pmdb.py | 6 ++++-- test/pacman/pmpkg.py | 1 + 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 -- cgit v1.2.3-24-g4f1b