pkg: do not allocate an id for a virtual package

feature/tap-sh
William Pitcock 2012-05-06 21:30:14 -05:00
parent cb23f16a85
commit 5122d5eecb
1 changed files with 2 additions and 1 deletions

3
pkg.c
View File

@ -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)
{