rescue: error-proof 60-apt

It's not a blocker if enabling online repos fails;
we should provide a better handling of warnings
with e.g. a summary of those after build.
This commit is contained in:
Michael Shigorin 2018-04-10 13:47:19 +03:00
parent 4298315d0c
commit d2f892abda

View File

@ -1,4 +1,4 @@
#!/bin/sh
# enable online repository even more unconditionally
sed -i "s,^#\(rpm \[alt\] http.*\),\1," "/etc/apt/sources.list.d/yandex.list"
sed -i "s,^#\(rpm \[alt\] http.*\),\1," "/etc/apt/sources.list.d/yandex.list" || echo "** warning: unable to enable online repos" >&2