rename xbps_pkgver_is_reverted to xbps_pkg_reverts
This commit is contained in:
		@@ -118,7 +118,7 @@ trans_find_pkg(struct xbps_handle *xhp, const char *pkg, bool reinstall)
 | 
			
		||||
		xbps_dictionary_get_cstring_nocopy(pkg_pkgdb,
 | 
			
		||||
		    "pkgver", &instpkgver);
 | 
			
		||||
		if (xbps_cmpver(repopkgver, instpkgver) <= 0 &&
 | 
			
		||||
		    !xbps_pkgver_is_reverted(repopkgver, pkg_repod)) {
 | 
			
		||||
		    !xbps_pkg_reverts(pkg_repod, repopkgver)) {
 | 
			
		||||
			xbps_dbg_printf(xhp, "[rpool] Skipping `%s' "
 | 
			
		||||
			    "(installed: %s) from repository `%s'\n",
 | 
			
		||||
			    repopkgver, instpkgver, repoloc);
 | 
			
		||||
 
 | 
			
		||||
@@ -430,7 +430,7 @@ xbps_humanize_number(char *buf, int64_t bytes)
 | 
			
		||||
 * Check if pkg is explicitly marked to replace a specific installed version.
 | 
			
		||||
 */
 | 
			
		||||
int
 | 
			
		||||
xbps_pkgver_is_reverted(const char *pkgver, xbps_dictionary_t pkg) {
 | 
			
		||||
xbps_pkg_reverts(xbps_dictionary_t pkg, const char *pkgver) {
 | 
			
		||||
	unsigned int i;
 | 
			
		||||
	xbps_array_t reverts;
 | 
			
		||||
	const char *revertver;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user