Skip to content

Commit

Permalink
tool/run: introduce 'have_recipe'-proc
Browse files Browse the repository at this point in the history
This procedure is useful for run scripts that depend for example on a
board support package that is provided only for certain boards, possibly
by a third-party repo.

Issue genodelabs#5432
  • Loading branch information
rite committed Feb 11, 2025
1 parent 5076554 commit aa4a74f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tool/run/run
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,14 @@ proc have_include { name } {
return false
}

##
# Check if a specific depot recipe is available
#
proc have_recipe { name } {
set hash_rel_path "recipes/$name/hash"
return [expr {[repository_contains $hash_rel_path] != ""}]
}


##
# Override the exit procedure
Expand Down

0 comments on commit aa4a74f

Please sign in to comment.