Skip to content

Commit

Permalink
Allow mode=manual services
Browse files Browse the repository at this point in the history
manual is the new name of disabled, see openSUSE/osc#826
Stop advertising deprecated names, so shorten warning message.

Remove explicit as the api does not allow that:
https://github.com/openSUSE/open-build-service/blob/4a4d5b0f07dd0d6bc03def3e863d299bfebcd7ad/docs/api/api/obs.rng#L88-L96
  • Loading branch information
dirkmueller committed Mar 21, 2022
1 parent c116a7b commit aef761e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 20-files-present-and-referenced
Expand Up @@ -116,9 +116,9 @@ if [ -x $(type -p xmllint) ]; then
xmllint --format "$i" > $TMPDIR/_service

if egrep -q "service .*mode=." $TMPDIR/_service \
&& ! egrep -q "service .*mode=.(disabled|buildtime|explicit|localonly)" \
&& ! egrep -q "service .*mode=.(disabled|manual|buildtime|localonly)" \
$TMPDIR/_service; then
echo "(W) openSUSE: projects only allow 'disabled', 'buildtime', 'explicit' or 'localonly' services."
echo "(W) openSUSE: projects only allow 'manual' or 'buildtime' services (localonly/disabled are deprecated)."
fi
fi

Expand Down

0 comments on commit aef761e

Please sign in to comment.