# Check if the source package has been built in Koji.
predicate is-koji-built (pkg) = {
cd %fedora-dir/%pkg/%fedora-branch
# Check if the source package has been built in Koji.
predicate is-koji-built (pkg) = {
cd %fedora-dir/%pkg/%fedora-branch
# No build at all, needs rebuild.
echo "$buildinfo" | grep -sq "No such build" && exit 99
# No build at all, needs rebuild.
echo "$buildinfo" | grep -sq "No such build" && exit 99
is-koji-built ("%pkg") :
wrap ("is-koji-built", fedora-source-dependencies (pkg)) {
cd %fedora-dir/%pkg/%fedora-branch
is-koji-built ("%pkg") :
wrap ("is-koji-built", fedora-source-dependencies (pkg)) {
cd %fedora-dir/%pkg/%fedora-branch
- nvr=$($koji --quiet latest-build %fedora-tag $p | awk '{print $1}')
- $koji wait-repo %fedora-tag --build=$nvr
+ nvr=$(koji --quiet latest-build %fedora-tag $p | awk '{print $1}')
+ koji wait-repo %fedora-tag --build=$nvr