pkg: add anchor Provides entry once the .pc file is parsed, instead of faking it in the tool

pull/100/head
William Pitcock 2016-08-26 23:43:20 -05:00
parent d72ece6a5f
commit 5ba46130d2
2 changed files with 3 additions and 2 deletions

View File

@ -331,6 +331,9 @@ pkgconf_pkg_new_from_file(const char *filename, FILE *f, unsigned int flags)
}
fclose(f);
pkgconf_dependency_add(&pkg->provides, pkg->id, pkg->version, PKGCONF_CMP_EQUAL);
return pkgconf_pkg_ref(pkg);
}

2
main.c
View File

@ -266,8 +266,6 @@ print_provides(pkgconf_pkg_t *pkg)
printf("\n");
}
printf("%s = %s\n", pkg->id, pkg->version);
}
static bool