projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c445fc
)
Dumb, dumb thinko/leftover from earlier prototype...
author
Panu Matilainen
<pmatilai@redhat.com>
Thu, 19 Jun 2008 13:08:00 +0000
(16:08 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Thu, 19 Jun 2008 13:08:00 +0000
(16:08 +0300)
lib/header.c
patch
|
blob
|
history
diff --git
a/lib/header.c
b/lib/header.c
index
3ed0d0e
..
7ecfea9
100644
(file)
--- a/
lib/header.c
+++ b/
lib/header.c
@@
-1597,7
+1597,8
@@
static int headerPutType(Header h, rpmTag tag, rpmTagType reqtype,
int valid = 1;
/* Basic sanity checks: type must match and there must be data to put */
- if (td.type != reqtype || size < 1 || data == NULL || h == NULL) {
+ if ((type & RPM_MASK_TYPE) != reqtype
+ || size < 1 || data == NULL || h == NULL) {
valid = 0;
}