Commit 36640504 authored by Vitaly Lipatov's avatar Vitaly Lipatov

use /etc/apt/sources.list if missed in apt.conf

parent afe442b9
......@@ -68,6 +68,7 @@ print_tmp_sourceslist()
sed -e "s|\"/etc/.*apt/sources.list|\"$ETERBUILDETC/apt/sources.list|g" | \
grep "/sources.list" | sed -e 's|.*"\(.*\)".*|\1|g'`
fi
[ -n "$SLIST" ] || SLIST="/etc/apt/sources.list"
test -r "$SLIST" || fatal "'$SLIST' - sources.list path from $1 is missed"
if [ "$BUILDARCH" = "x86_64" ] ; then
cat "$SLIST" | sed -e "s|\([ /]\)i[56]86|\1$BUILDARCH|g"
......
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