run 'hub upgrade' in rpm/deb postinst, improve hub message (#3440)

This commit is contained in:
mmetc 2025-02-04 16:51:02 +01:00 committed by GitHub
parent bfed861ba7
commit dc28ae58dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 1 deletions

2
debian/postinst vendored
View file

@ -68,6 +68,8 @@ if [ "$1" = configure ]; then
echo Updating hub
/usr/bin/cscli hub update
/usr/bin/cscli hub upgrade
if [ "$COLLECTIONS" = true ]; then
set +e
CSCLI_BIN_INSTALLED="/usr/bin/cscli" SILENT=true install_collection

View file

@ -467,7 +467,7 @@ func (i *Item) checkSubItemVersions() []string {
if !sub.State.UpToDate {
i.State.UpToDate = false
warn = append(warn, fmt.Sprintf("%s is tainted by outdated %s", i.Name, sub.FQName()))
warn = append(warn, fmt.Sprintf("%s is outdated because of %s", i.Name, sub.FQName()))
continue
}

View file

@ -176,6 +176,7 @@ if [ $1 == 1 ]; then
fi
cscli hub update
cscli hub upgrade
CSCLI_BIN_INSTALLED="/usr/bin/cscli" SILENT=true install_collection
GREEN='\033[0;32m'