summaryrefslogtreecommitdiffstats
path: root/pactest/pmdb.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-02-14 05:42:34 +0100
committerDan McGee <dan@archlinux.org>2008-02-14 05:52:53 +0100
commitb206aaee881abd6e256428f2146212cfc1c69be2 (patch)
treef98a568ce0924d62f8e3779a02bd7058ff9eb7f3 /pactest/pmdb.py
parentf4ac63ab43a277cdc6a409c0bd6f0d04c1791882 (diff)
downloadpacman-b206aaee881abd6e256428f2146212cfc1c69be2.tar.gz
pacman-b206aaee881abd6e256428f2146212cfc1c69be2.tar.xz
Ensure DESC infolevel is loaded before checking pkg->filename
This is the first step of fixing FS#9547. This should not break any existing code that may rely on this function behaving the way it did, and should be good for inclusion in a maint release. In addition, update pactest so it fills the FILENAME field in the DB entries it creates so we can move forward with a real fix to this issue. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/pmdb.py')
-rwxr-xr-xpactest/pmdb.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pactest/pmdb.py b/pactest/pmdb.py
index af392000..e0f328ef 100755
--- a/pactest/pmdb.py
+++ b/pactest/pmdb.py
@@ -261,6 +261,7 @@ class pmdb:
if pkg.reason:
data.append(_mksection("REASON", pkg.reason))
else:
+ data.append(_mksection("FILENAME", pkg.filename()))
if pkg.replaces:
data.append(_mksection("REPLACES", pkg.replaces))
if pkg.force: