From 7484f52aa36b224021ff51801fb46b390234aad1 Mon Sep 17 00:00:00 2001 From: Freddy List Date: Sun, 2 Apr 2023 20:27:17 +0200 Subject: [PATCH] xupdate: Handle dashes in versions --- xupdate | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xupdate b/xupdate index cb72533..a50225f 100755 --- a/xupdate +++ b/xupdate @@ -82,7 +82,8 @@ function update_version() { latest_version="$("${XBPS_DISTDIR}/xbps-src" $flag_H update-check "${pkgname}" \ | grep -e '->' \ | tail -n1 \ - | sed -e 's/.*-\(.*\)/\1/')" + | sed -e "s/.* -> ${pkgname}-\(.*\)/\1/" \ + | tr - .)" [[ -z "${latest_version}" ]] && return