Commit d9a17944 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix unpacking tarball to current dir

parent 4285dfe7
......@@ -179,7 +179,7 @@ gear_update_from_tarball()
commit_tarball()
{
#rhas "$GETSOURCE" "ps?://" || GETSOURCE=""
CURNAME=$(get_tardir_from_rules) || fatal "There is no 'tar:' line in gear rules file or 'tar: .' needed for commit tarball"
CURNAME=$(get_tardir_from_rules) || fatal "There is no correct 'tar:' line in gear rules file, needed for commit tarball"
# FIXME: hack to unpack to correct place.
[ $(basename `pwd`) = ".gear" ] && cd ..
test -d "$CURNAME" || CURNAME=$(get_tarballname "$spec")
......
......@@ -305,7 +305,7 @@ get_tardir_from_rules()
local dir=$(grep "tar.*: " $rules | sed -e "s|tar.*: *||g
s| .*||g")
[ "$dir" = "." ] || [ -z "$dir" ] && return 1
echo "$dir"
realpath "$(get_root_git_dir)/$dir"
}
filter_gear_name()
......
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