1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
classes:
- Framework.pkg.apt.source.functions
parameters:
doc:
framework-pkg:
tweak:
- (re)set APT sources list to generic defaults
tweak:
- >
file=/target/etc/apt/sources.list;\
suite="$''{suite:-stable}";\
components="main$''{nonfree:+ contrib non-free}";\
_resetaptsrc "$file" http deb.debian.org/debian "$suite" $components;\
if [ sid != "$suite" ]; then \
_setaptsrc "$file" http deb.debian.org/debian "$suite"-updates $components;\
fi;\
if grep -q ^VERSION= /target/etc/os-release; then \
_setaptsrc "$file" http security.debian.org/ "$suite"-security $components;\
fi
|