From 82b547aa26aac6e0580dfaedbbc84b99c558f586 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Fri, 8 Feb 2008 13:45:56 +0200 Subject: [PATCH] Oops, package type in lead was reversed... --- lib/rpmlead.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rpmlead.c b/lib/rpmlead.c index 26ae350..1c82f02 100644 --- 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); -- 2.7.4