Commit 0bcc62af authored by Vitaly Lipatov's avatar Vitaly Lipatov

is_gear: add heuristic for .gear-less git repos

parent 6f440c39
......@@ -316,10 +316,13 @@ get_root_git_dir()
# FIXME: 1) can return / with good status 2) no one check status later
}
# Usage: is_gear [path_to_spec|dir_inside_git]
# Usage: is_gear [path_to_spec_file|dir_inside_git]
is_gear()
{
get_gear_rules $@ >/dev/null
get_gear_rules "$1" >/dev/null && return
# HACK for repo without .gear dir (task-edu package)
local GITDIR="$(get_root_git_dir "$1")"
[ -f "$(echo "$GITDIR"/*.spec)" ] && return
}
get_packager()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment