Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Revert "Add a new pkg_vcmp function to compare versions of 2 struct pkg *"
Baptiste Daroussin committed 12 years ago
commit 3e85a7b64110c47b4a19eb2829a98d841111a423
parent fd26742
2 files changed +0 -12
modified libpkg/pkg.h.in
@@ -1178,7 +1178,6 @@ const char *pkg_config_name(struct pkg_config *c);
 * @todo Document
 */
int pkg_version_cmp(const char * const , const char * const);
-
int pkg_vcmp(struct pkg *, struct pkg *);
int pkg_version_change(const struct pkg * restrict);

/**
modified libpkg/pkg_version.c
@@ -336,17 +336,6 @@ pkg_version_cmp(const char * const pkg1, const char * const pkg2)
}

int
-
pkg_vcmp(struct pkg *p1, struct pkg *p2)
-
{
-
	const char *version1, *version2;
-

-
	pkg_get(p1, PKG_VERSION, &version1);
-
	pkg_get(p2, PKG_VERSION, &version2);
-

-
	return (pkg_version_cmp(version1, version2));
-
}
-

-
int
pkg_version_change(const struct pkg * restrict pkg)
{
	const char *version, *oldversion;