Skip to content
Snippets Groups Projects
Commit 6ffed269 authored by Bob Mottram's avatar Bob Mottram
Browse files

Skip sources.list replacement for raspbian (not officially supported, but might work)

parent 55a3613d
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,16 @@ function create_repo_sources {
rm -rf /var/lib/apt/lists/*
$CLEAN_PACKAGES
if [ -f /etc/apt/sources.list ]; then
# if this is raspbian then skip the replacement and hope for the best
if grep -q "raspbian" /etc/apt/sources.list; then
$UPDATE_PACKAGES
$INSTALL_PACKAGES apt-transport-https
mark_completed "${FUNCNAME[0]}"
return
fi
fi
{ echo "deb http://${DEBIAN_REPO}/debian/ ${DEBIAN_VERSION} main";
echo "deb-src http://${DEBIAN_REPO}/debian/ ${DEBIAN_VERSION} main";
echo '';
......@@ -50,7 +60,6 @@ function create_repo_sources {
$UPDATE_PACKAGES
$INSTALL_PACKAGES apt-transport-https
mark_completed "${FUNCNAME[0]}"
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment