From 5122d5eecb4ad620ec2607909ce653553e2071e5 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 6 May 2012 21:30:14 -0500 Subject: [PATCH] pkg: do not allocate an id for a virtual package --- pkg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg.c b/pkg.c index fb2adc3..72eb344 100644 --- a/pkg.c +++ b/pkg.c @@ -385,7 +385,8 @@ pkg_verify_dependency(pkg_dependency_t *pkgdep, unsigned int flags, unsigned int } } - pkg->id = strdup(pkgdep->package); + if (pkg->id == NULL) + pkg->id = strdup(pkgdep->package); switch(pkgdep->compare) {