xbps_pkg_epoch is not supported anymore with NetBSD's dewey.
This commit is contained in:
parent
3bd48a8521
commit
0bc77f86fa
@ -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>.
|
||||
*
|
||||
|
14
lib/util.c
14
lib/util.c
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user