dist/ci/obs-deploy: limit request list
by user to avoid source requests.
Otherwise, requests from Factory to Leap will prevent request to Factory from being generated.
This commit is contained in:
parent
a7c4bcfd32
commit
88add9aefa
6
dist/ci/obs-deploy
vendored
6
dist/ci/obs-deploy
vendored
@ -21,7 +21,11 @@ fi
|
||||
OBS_TARGET_PROJECT="$(osc info | grep -oP "Link info:.*?project \K[^\s,]+")"
|
||||
OBS_TARGET_PACKAGE="$(osc info | grep -oP "Link info:.*?, package \K[^\s,]+")"
|
||||
echo "checking for existing requests to $OBS_TARGET_PROJECT/$OBS_TARGET_PACKAGE..."
|
||||
if osc request list "$OBS_TARGET_PROJECT" "$OBS_TARGET_PACKAGE" | grep 'No results for package' ; then
|
||||
# Limit by user in an attempt to avoid requests sourced from target project.
|
||||
# Unfortunately the command line provides no mechanism to do so and a full API
|
||||
# query is rather ungainly compared to this workaround.
|
||||
if osc request list -U "$OBS_USER" "$OBS_TARGET_PROJECT" "$OBS_TARGET_PACKAGE" |
|
||||
grep 'No results for package' ; then
|
||||
osc service wait
|
||||
osc sr --diff | cat
|
||||
osc sr --yes -m "automatic update"
|
||||
|
Loading…
x
Reference in New Issue
Block a user