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:
d718b12
)
Oops, package type in lead was reversed...
author
Panu Matilainen
<pmatilai@redhat.com>
Fri, 8 Feb 2008 11:45:56 +0000
(13:45 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Fri, 8 Feb 2008 11:45:56 +0000
(13:45 +0200)
lib/rpmlead.c
patch
|
blob
|
history
diff --git
a/lib/rpmlead.c
b/lib/rpmlead.c
index
26ae350
..
1c82f02
100644
(file)
--- a/
lib/rpmlead.c
+++ b/
lib/rpmlead.c
@@
-59,7
+59,7
@@
rpmlead rpmLeadFromHeader(Header h)
assert(h != NULL);
rpmlead l = rpmLeadNew();
- l->type =
!(headerIsSource(h)
);
+ l->type =
(headerIsSource(h) ? 1 : 0
);
nevr = headerGetNEVR(h, NULL);
strncpy(l->name, nevr, sizeof(l->name));
free(nevr);