Commit 66175fe8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgs: fix vendoring for non tarball build

parent b2ecd0b1
...@@ -472,14 +472,14 @@ update_predownloaded() ...@@ -472,14 +472,14 @@ update_predownloaded()
local RGD=$(get_root_git_dir) local RGD=$(get_root_git_dir)
CURNAME=$FIRSTSOURCEDIR CURNAME="$FIRSTSOURCEDIR"
# hack for subdir?? # hack for subdir??
#CURNAME=$BASENAME #CURNAME=$BASENAME
info "Preparing sources in $PSM for mode $MODE ..." info "Preparing sources in $PSM for mode $MODE ..."
# TODO: add support for git # TODO: add support for git
rm -rf $PSM rm -rf $PSM
if [ -n "$GETSOURCEGIT" ] ; then if [ -n "$FIRSTSOURCEGIT" ] || [ -n "$GETSOURCEUUPDATE" ] ; then
# cp -a exclude .dir # cp -a exclude .dir
mkdir -p $PSM || fatal mkdir -p $PSM || fatal
cp -a $RGD/* $PSM || fatal cp -a $RGD/* $PSM || fatal
...@@ -740,6 +740,7 @@ if is_gear $SPECDIR && [ -z "$GSSETVERSION" ] && $EPMCMD assure gear-rules-verif ...@@ -740,6 +740,7 @@ if is_gear $SPECDIR && [ -z "$GSSETVERSION" ] && $EPMCMD assure gear-rules-verif
$EPMCMD assure gear-uupdate $EPMCMD assure gear-uupdate
if ls $(get_root_git_dir)/.gear | grep \.watch$ || ls $(get_root_git_dir) | grep \.watch$ ; then if ls $(get_root_git_dir)/.gear | grep \.watch$ || ls $(get_root_git_dir) | grep \.watch$ ; then
docmd rpm-uscan -v --force-action gear-uupdate docmd rpm-uscan -v --force-action gear-uupdate
GETSOURCEUUPDATE=1
source_postupdate_hook source_postupdate_hook
...@@ -759,6 +760,7 @@ if is_gear $SPECDIR && [ -z "$GSSETVERSION" ] && $EPMCMD assure gear-rules-verif ...@@ -759,6 +760,7 @@ if is_gear $SPECDIR && [ -z "$GSSETVERSION" ] && $EPMCMD assure gear-rules-verif
docmd gear-remotes-restore docmd gear-remotes-restore
docmd gear-remotes-uscan docmd gear-remotes-uscan
docmd gear-commit docmd gear-commit
GETSOURCEUUPDATE=1
# update_post_git_submodules # update_post_git_submodules
source_postupdate_hook source_postupdate_hook
...@@ -789,6 +791,7 @@ fi ...@@ -789,6 +791,7 @@ fi
[ -n "$GSSETVERSION" ] || fatal "GSSETVERSION is empty here" [ -n "$GSSETVERSION" ] || fatal "GSSETVERSION is empty here"
tag="$(get_tag_by_version "$GSSETVERSION")" tag="$(get_tag_by_version "$GSSETVERSION")"
[ -n "$tag" ] || fatal "Can't find appropriate tag for $GSSETVERSION version" [ -n "$tag" ] || fatal "Can't find appropriate tag for $GSSETVERSION version"
GETSOURCEUUPDATE=1
docmd gear-uupdate --upstream-version "$GSSETVERSION" --tag $tag docmd gear-uupdate --upstream-version "$GSSETVERSION" --tag $tag
docmd gear-commit docmd gear-commit
...@@ -892,6 +895,7 @@ fi ...@@ -892,6 +895,7 @@ fi
docmd git remote add upstream $GETSOURCEGIT docmd git remote add upstream $GETSOURCEGIT
docmd git fetch --tags upstream docmd git fetch --tags upstream
update_master_branch_to "$GSSETVERSION" update_master_branch_to "$GSSETVERSION"
FIRSTSOURCEGIT=1
update_post_git_submodules update_post_git_submodules
source_postupdate_hook source_postupdate_hook
......
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