mirror of
https://github.com/sbopkg/sbopkg
synced 2024-11-09 19:50:25 +03: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
@ -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…
Reference in New Issue
Block a user