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.
This commit is contained in:
Didier Spaier 2020-05-31 00:47:18 +02:00 committed by GitHub
parent c353ac712a
commit d858119816
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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