Commit f598b1d7 authored by Vitaly Lipatov's avatar Vitaly Lipatov

hasher: fix arch replacement

parent d2043948
...@@ -70,9 +70,9 @@ print_tmp_sourceslist() ...@@ -70,9 +70,9 @@ print_tmp_sourceslist()
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"
if [ "$DEFAULTARCH" = "x86_64" ] ; then if [ "$DEFAULTARCH" = "x86_64" ] ; then
cat "$SLIST" | sed -e "s|x86_64|$DEFAULTARCH|g"
else
cat "$SLIST" | sed -e "s|i586|$DEFAULTARCH|g" cat "$SLIST" | sed -e "s|i586|$DEFAULTARCH|g"
else
cat "$SLIST" | sed -e "s|x86_64|$DEFAULTARCH|g"
fi fi
} }
......
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