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`
RPMVENDOR=`distr_vendor -n`
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"
MENVARG="-$MENV"
else
# FIXME: echog breakes vars
# FIXME: echog breaks vars
echog "Distribution: \$DISTRNAME (\$VENDOR) (target package: \$TARGET)"
fi
}
......
......@@ -40,8 +40,6 @@ COMPANYFTP=etersoft.ru
TARGETFTPBASE="/var/ftp"
LOGDIR="$RPMDIR/log"
HASHERBASEDIR="$HOME/hasher"
# fill it in set_hasher_dir
HASHERDIR=""
HASHER_NOCHECK=nvr,gpg,packager,buildtime
HASHERARG=""
......
......@@ -12,9 +12,9 @@ set_hasherdir()
fatal "Please install hasher package before use it"
fi
if [ -n "$HASHERDIR" ] ; then
fatal "Possible HASHERBASEDIR is not set correctly. Please replace HASHERDIR with HASHERBASEDIR in the config file"
fi
#if [ -n "$HASHERDIR" ] ; then
# fatal "Possible HASHERBASEDIR is not set correctly. Please replace HASHERDIR with HASHERBASEDIR in the config file"
#fi
HASHERDIR=$HASHERBASEDIR$MENVARG
if [ "$DEFAULTARCH" = "x86_64" ] ; then
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