From 0bc77f86fa3776f1ec80e408728903192dba2e90 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 14 Jun 2011 11:26:00 +0200 Subject: [PATCH] xbps_pkg_epoch is not supported anymore with NetBSD's dewey. --- include/xbps_api.h | 10 ---------- lib/util.c | 14 -------------- 2 files changed, 24 deletions(-) diff --git a/include/xbps_api.h b/include/xbps_api.h index 9f981d30..22242b73 100644 --- a/include/xbps_api.h +++ b/include/xbps_api.h @@ -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 foo-2.0:epoch. - * - * @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 foo-2.0. * diff --git a/lib/util.c b/lib/util.c index 014460fa..5d8ae686 100644 --- a/lib/util.c +++ b/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) {