xbps_pkg_epoch is not supported anymore with NetBSD's dewey.
This commit is contained in:
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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user