Skip to content

Commit

Permalink
[rpm/harbour-storeman-installer.spec] Move `rm -f /var/cache/ssu/feat…
Browse files Browse the repository at this point in the history
…ures.ini`
  • Loading branch information
Olf0 authored Nov 3, 2024
1 parent c71320e commit 10bee3e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions rpm/harbour-storeman-installer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ ssu_lr="$(ssu lr | grep '^ - ' | cut -f 3 -d ' ')"
if echo "$ssu_lr" | grep -Fq mentaljam-obs
then
ssu rr mentaljam-obs
rm -f /var/cache/ssu/features.ini
ssu_ur=yes
fi
# Add harbour-storeman-obs repository configuration, depending on the installed
Expand Down Expand Up @@ -185,7 +184,9 @@ then
else echo "Error: VERSION_ID=$VERSION_ID => sailfish_version=$sailfish_version"
fi
if [ $ssu_ur = yes ]
then ssu ur
then
rm -f /var/cache/ssu/features.ini
ssu ur
fi
# BTW, `ssu`, `rm -f`, `mkdir -p` etc. *always* return with "0" ("success"), hence
# no appended `|| true` needed to satisfy `set -e` for failing commands outside of
Expand Down

0 comments on commit 10bee3e

Please sign in to comment.