From d8581198167846e84bccd889723a5e2c825aac24 Mon Sep 17 00:00:00 2001 From: Didier Spaier Date: Sun, 31 May 2020 00:47:18 +0200 Subject: [PATCH] Skip all installed packages with same short name Currently running sbopkg -k -i queue skips 'foo'' only if foo's full name ends in $REPO_TAG. Remove this restriction to avoid installing a second 'foo', which can lead to break packages already installed also depending on 'foo' if both 'foo' do not have the same content. --- src/usr/sbin/sbopkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index ffe5e9f..f025f9a 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -2133,7 +2133,7 @@ add_item_to_queue() { # false match when running 'sbopkg -k -i queue' because 'foo' and # 'libfoo' matched INSTALLED=$(ls -1 /var/lib/pkgtools/packages/ | - grep "^$APP-[^-]*-[^-]*-[^-]*$REPO_TAG$") + grep "^$APP-[^-]*-[^-]*-[^-]*$") if [[ -n $INSTALLED ]]; then VERSION=$(sed 's:^.*-\([^-]*\)-[^-]*-[^-]*$:\1:'<<<$INSTALLED) if [[ -e $UPDATELIST ]]; then