pkg: add pkg_t.id field

pull/1/merge
William Pitcock 2011-07-26 20:37:01 -05:00
parent 8543f1bdd4
commit b0c16941ce
2 changed files with 3 additions and 0 deletions

2
pkg.c
View File

@ -186,6 +186,8 @@ pkg_verify_dependency(pkg_dependency_t *pkgdep)
if (pkg == NULL)
return NULL;
pkg->id = strdup(pkgdep->package);
switch(pkgdep->compare)
{
case PKG_LESS_THAN:

1
pkg.h
View File

@ -74,6 +74,7 @@ struct tuple_ {
};
struct pkg_ {
char *id;
char *filename;
char *realname;
char *version;