summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-10-12 10:48:59 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-10-12 10:48:59 +0300
commitbb47ec2695c4c2bf16b8995c53d5f92bc51cf3e3 (patch)
tree6421029bbd4435708c01cd0da0794de969fe1b5c
parent856df71e8dc24219ec01619d2089a06e9ae36dfc (diff)
downloadrpm-bb47ec2695c4c2bf16b8995c53d5f92bc51cf3e3.tar.gz
rpm-bb47ec2695c4c2bf16b8995c53d5f92bc51cf3e3.tar.bz2
rpm-bb47ec2695c4c2bf16b8995c53d5f92bc51cf3e3.zip
Permit conditional query formats on not yet cached data too
-rw-r--r--lib/headerfmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/headerfmt.c b/lib/headerfmt.c
index 97332e76a..95bb3eeea 100644
--- a/lib/headerfmt.c
+++ b/lib/headerfmt.c
@@ -689,7 +689,7 @@ static char * singleSprintf(headerSprintfArgs hsa, sprintfToken token,
break;
case PTOK_COND:
- if (getCached(hsa->cache, token->u.cond.tag.tag) ||
+ if (getData(hsa, token->u.cond.tag.tag) ||
headerIsEntry(hsa->h, token->u.cond.tag.tag)) {
spft = token->u.cond.ifFormat;
condNumFormats = token->u.cond.numIfTokens;