Commit ee7a36e5 authored by Vitaly Lipatov's avatar Vitaly Lipatov

always set APTCONF and HASHERDIR

parent 90deaef1
...@@ -125,12 +125,13 @@ VENDOR=`distr_vendor -s` ...@@ -125,12 +125,13 @@ VENDOR=`distr_vendor -s`
RPMVENDOR=`distr_vendor -n` RPMVENDOR=`distr_vendor -n`
if [ "$VENDOR" = "alt" ] && [ -n "$MENV" ] ; then if [ "$VENDOR" = "alt" ] && [ -n "$MENV" ] ; then
[ -n "$APTCONF" ] || APTCONF=${APTCONFBASE/.SS}.$MENV #[ -n "$APTCONF" ] && fatal "Internal error: APTCONF already defined as $APTCONF for $MENV"
APTCONF=${APTCONFBASE/.SS}.$MENV
[ -n "$VERBOSE" ] && echog "Target ALT Linux system: `get_altdistr_version $MENV`, use \$APTCONF" [ -n "$VERBOSE" ] && echog "Target ALT Linux system: `get_altdistr_version $MENV`, use \$APTCONF"
MENVARG="-$MENV" MENVARG="-$MENV"
else else
# FIXME: echog breakes vars # FIXME: echog breaks vars
echog "Distribution: \$DISTRNAME (\$VENDOR) (target package: \$TARGET)" echog "Distribution: \$DISTRNAME (\$VENDOR) (target package: \$TARGET)"
fi fi
} }
......
...@@ -40,8 +40,6 @@ COMPANYFTP=etersoft.ru ...@@ -40,8 +40,6 @@ COMPANYFTP=etersoft.ru
TARGETFTPBASE="/var/ftp" TARGETFTPBASE="/var/ftp"
LOGDIR="$RPMDIR/log" LOGDIR="$RPMDIR/log"
HASHERBASEDIR="$HOME/hasher" HASHERBASEDIR="$HOME/hasher"
# fill it in set_hasher_dir
HASHERDIR=""
HASHER_NOCHECK=nvr,gpg,packager,buildtime HASHER_NOCHECK=nvr,gpg,packager,buildtime
HASHERARG="" HASHERARG=""
......
...@@ -12,9 +12,9 @@ set_hasherdir() ...@@ -12,9 +12,9 @@ set_hasherdir()
fatal "Please install hasher package before use it" fatal "Please install hasher package before use it"
fi fi
if [ -n "$HASHERDIR" ] ; then #if [ -n "$HASHERDIR" ] ; then
fatal "Possible HASHERBASEDIR is not set correctly. Please replace HASHERDIR with HASHERBASEDIR in the config file" # fatal "Possible HASHERBASEDIR is not set correctly. Please replace HASHERDIR with HASHERBASEDIR in the config file"
fi #fi
HASHERDIR=$HASHERBASEDIR$MENVARG HASHERDIR=$HASHERBASEDIR$MENVARG
if [ "$DEFAULTARCH" = "x86_64" ] ; then if [ "$DEFAULTARCH" = "x86_64" ] ; then
HASHERDIR="$HASHERDIR-64" HASHERDIR="$HASHERDIR-64"
......
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