From b206aaee881abd6e256428f2146212cfc1c69be2 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 13 Feb 2008 22:42:34 -0600 Subject: 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 --- pactest/pmdb.py | 1 + 1 file changed, 1 insertion(+) (limited to 'pactest') 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: -- cgit v1.2.3-70-g09d2