Commit 1dc0add4 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix SPECDIR using, add full path to our commands

parent 130e9b32
......@@ -96,7 +96,7 @@ fi
for i in $LISTNAMES
do
# build src.rpm if old way
SPECDIR=`dirname $i`
set_specdir $i
is_gear $SPECDIR || build_rpms_name "$i"
if ! is_alt ; then
if ! build_buildroot ; then
......
......@@ -107,9 +107,7 @@ check_gear_and_tag()
local GEARCTAG=gear-create-tag
# set SPECDIR from LISTNAMES if empty
if [ -r "$LISTNAMES" ] ; then
[ -n "$SPECDIR" ] || SPECDIR=`dirname $LISTNAMES`
fi
[ -n "$SPECDIR" ] || set_specdir $LISTNAMES
if is_gear $SPECDIR ; then
# needed correct user.name/user.email for get GPG id
......@@ -153,9 +151,7 @@ fi
#echo "@@ - $LISTRPMARGS - '$MENV'"
# set SPECDIR from LISTNAMES if empty
if [ -r "$LISTNAMES" ] ; then
[ -n "$SPECDIR" ] || SPECDIR=`dirname $LISTNAMES`
fi
[ -n "$SPECDIR" ] || set_specdir $LISTNAMES
# If we build from gear repo, run task
if [ -n "$UPLOADNOW" ] && is_gear $SPECDIR ; then
......
......@@ -123,7 +123,7 @@ do
subst "s|Source0:|Source:|" $i
subst "s|Patch0:|Patch:|" $i
SPECDIR=`dirname $i`
set_specdir $i
if ! is_gear $SPECDIR && [ -n "$RENAME_SOURCE_TARBALL" ] ; then
# Use tar.bz2 for tarball if not git case.
subst "s|\(Source:.*\).tar.gz|\1.tar.bz2|" $i
......
......@@ -32,7 +32,7 @@ fi
test -e "$SPEC" || fatal "use with spec"
rpmgs $SPEC $VER || fatal "Error with get source"
$ETERBUILDBIN/rpmgs $SPEC $VER || fatal "Error with get source"
add_changelog_helper "- new version $(get_version $SPEC) (with rpmrb script)" $SPEC || echog "Changelog entry already exists"
# TODO
......@@ -41,5 +41,5 @@ if is_gear `pwd` ; then
git commit $SPEC -m "update spec to new build" || exit 1
fi
rpmbsh $REMOTE -i $SPEC || fatal "Error with build in hasher"
rpmbs -u $SPEC || fatal "Error with upload"
$ETERBUILDBIN/rpmbsh $REMOTE -i $SPEC || fatal "Error with build in hasher"
$ETERBUILDBIN/rpmbs -u $SPEC || fatal "Error with upload"
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