xbps_pkg_epoch is not supported anymore with NetBSD's dewey.

This commit is contained in:
Juan RP 2011-06-14 11:26:00 +02:00
parent 3bd48a8521
commit 0bc77f86fa
2 changed files with 0 additions and 24 deletions

View File

@ -1313,16 +1313,6 @@ char *xbps_pkg_name(const char *pkg);
*/
char *xbps_pkgpattern_name(const char *pattern);
/**
* Gets the package epoch version in a package string, i.e <b>foo-2.0:epoch</b>.
*
* @param[in] pkg Package string.
*
* @return A string with the epoch version string, NULL if it couldn't find
* the epoch component.
*/
const char *xbps_pkg_epoch(const char *pkg);
/**
* Gets the package version in a package string, i.e <b>foo-2.0</b>.
*

View File

@ -245,20 +245,6 @@ xbps_check_is_installed_pkg_by_name(const char *pkgname)
return false;
}
const char *
xbps_pkg_epoch(const char *pkg)
{
const char *tmp;
assert(pkg != NULL);
tmp = strrchr(pkg, ':');
if (tmp == NULL)
return NULL;
return tmp + 1; /* skip first ':' */
}
const char *
xbps_pkg_version(const char *pkg)
{