Commit f625bf0c authored by Vitaly Lipatov's avatar Vitaly Lipatov

hasher: support for build i586 on x86_64

parent 8739c0e0
...@@ -52,8 +52,11 @@ print_tmp_sourceslist() ...@@ -52,8 +52,11 @@ print_tmp_sourceslist()
grep "/sources.list" | sed -e 's|.*"\(.*\)".*|\1|g'` grep "/sources.list" | sed -e 's|.*"\(.*\)".*|\1|g'`
fi fi
test -r "$SLIST" || fatal "'$SLIST' - sources.list path from $1 is missed" test -r "$SLIST" || fatal "'$SLIST' - sources.list path from $1 is missed"
cat "$SLIST" | \ if [ "$DEFAULTARCH" = "x86_64" ] ; then
sed -e "s|i586|$DEFAULTARCH|g" cat "$SLIST" | sed -e "s|x86_64|$DEFAULTARCH|g"
else
cat "$SLIST" | sed -e "s|i586|$DEFAULTARCH|g"
fi
} }
prepare_aptconfig() prepare_aptconfig()
......
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