Commit eb49b25c authored by Vitaly Lipatov's avatar Vitaly Lipatov

add prepare_aptconfig, export OURAPTCONF, OURSOURCES

parent 0c7460a6
......@@ -27,7 +27,8 @@ print_tmp_aptconf()
test -r "$1" || fatal "$1 is missed"
# Note: /etc/apt and /etc/eterbuild/apt is supported
cat "$1" | \
sed -e "s|\"/etc/.*apt/sources.list|\"$ETERBUILDETC/apt/sources.list|g"
sed -e "s|\"/etc/.*apt/sources.list|\"$OURTMPDIR/sources.list|g"
# sed -e "s|\"/etc/.*apt/sources.list|\"$ETERBUILDETC/apt/sources.list|g"
}
# workaround about hard coded arch in sources.list
......@@ -43,3 +44,11 @@ print_tmp_sourceslist()
cat "$SLIST" | \
sed -e "s|i586|$DEFAULTARCH|g"
}
prepare_aptconfig()
{
print_tmp_aptconf $APTCONF >$OURTMPDIR/apt.conf.$MENV || fatal "Can't create apt.conf"
print_tmp_sourceslist $APTCONF >$OURTMPDIR/sources.list.$MENV || fatal "Can't create sources.list"
export OURAPTCONF=$OURTMPDIR/apt.conf.$MENV
export OURSOURCES=$OURTMPDIR/sources.list.$MENV
}
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