koji: Complete on build targets when --target is given to wait-repo.
This commit is contained in:
parent
796fbbdc86
commit
2f2f1278c7
@ -162,7 +162,7 @@ _koji()
|
|||||||
latest-by-tag)
|
latest-by-tag)
|
||||||
_koji_package "$1"
|
_koji_package "$1"
|
||||||
;;
|
;;
|
||||||
latest-pkg|list-groups|list-tag-inheritance|show-groups|wait-repo)
|
latest-pkg|list-groups|list-tag-inheritance|show-groups)
|
||||||
case $nth in
|
case $nth in
|
||||||
1)
|
1)
|
||||||
_koji_tag "$1"
|
_koji_tag "$1"
|
||||||
@ -217,6 +217,19 @@ _koji()
|
|||||||
taginfo)
|
taginfo)
|
||||||
_koji_tag "$1"
|
_koji_tag "$1"
|
||||||
;;
|
;;
|
||||||
|
wait-repo)
|
||||||
|
case $nth in
|
||||||
|
1)
|
||||||
|
for (( i=commandix+1; i < cword; i++ )); do
|
||||||
|
if [[ ${words[i]} == --target ]]; then
|
||||||
|
_koji_target "$1"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
_koji_tag "$1"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user