mirror of
https://github.com/sbopkg/sbopkg
synced 2025-02-07 08:46:04 +01:00
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:
parent
c353ac712a
commit
d858119816
1 changed files with 1 additions and 1 deletions
|
@ -2133,7 +2133,7 @@ add_item_to_queue() {
|
||||||
# false match when running 'sbopkg -k -i queue' because 'foo' and
|
# false match when running 'sbopkg -k -i queue' because 'foo' and
|
||||||
# 'libfoo' matched
|
# 'libfoo' matched
|
||||||
INSTALLED=$(ls -1 /var/lib/pkgtools/packages/ |
|
INSTALLED=$(ls -1 /var/lib/pkgtools/packages/ |
|
||||||
grep "^$APP-[^-]*-[^-]*-[^-]*$REPO_TAG$")
|
grep "^$APP-[^-]*-[^-]*-[^-]*$")
|
||||||
if [[ -n $INSTALLED ]]; then
|
if [[ -n $INSTALLED ]]; then
|
||||||
VERSION=$(sed 's:^.*-\([^-]*\)-[^-]*-[^-]*$:\1:'<<<$INSTALLED)
|
VERSION=$(sed 's:^.*-\([^-]*\)-[^-]*-[^-]*$:\1:'<<<$INSTALLED)
|
||||||
if [[ -e $UPDATELIST ]]; then
|
if [[ -e $UPDATELIST ]]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue