From 06e378a925685f3634ee91275a6be140d2405b97 Mon Sep 17 00:00:00 2001
From: Edileuton Henrique de Oliveira <eho09@c3sl.ufpr.br>
Date: Wed, 16 Jul 2014 15:22:10 -0300
Subject: [PATCH] build: Fix le-autoupgrade for LE5

Signed-off-by: Edileuton Henrique de Oliveira <eho09@c3sl.ufpr.br>
---
 build/bootstraps/bootstrap-update.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/build/bootstraps/bootstrap-update.sh b/build/bootstraps/bootstrap-update.sh
index 3cd2175..bc8603c 100755
--- a/build/bootstraps/bootstrap-update.sh
+++ b/build/bootstraps/bootstrap-update.sh
@@ -151,6 +151,12 @@ rm -f "${SEED_MEC_HOME}/SEED2/updating" &> /dev/null
 # Remove auxiliar directories
 rm -rf "${SEED_MEC_HOME}/update" &> /dev/null
 
+#Fix the le-autoupgrade on LE 5
+if test -f /etc/le_version && \
+    dpkg --compare-versions $(cat /etc/le_version ) gt 4; then
+    sudo rm -f '/etc/apt/sources.list.d/quantal-repos.list'
+fi
+
 # Call the agent
 "${SEED_MEC_HOME}/SEED2/update.sh"
 
-- 
GitLab