From 3c2f8e0a7c1bdd41519b73f7d1d8089bc3049c3c Mon Sep 17 00:00:00 2001
From: Diego Giovane Pasqualin <dpasqualin@c3sl.ufpr.br>
Date: Wed, 25 Jun 2014 14:00:08 -0300
Subject: [PATCH] Add le5-stable repository to minicom installation

Signed-off-by: Diego Giovane Pasqualin <dpasqualin@c3sl.ufpr.br>
---
 scripts/00-update | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/scripts/00-update b/scripts/00-update
index a24d1f6..b582096 100755
--- a/scripts/00-update
+++ b/scripts/00-update
@@ -52,6 +52,8 @@ rm -f "$CHROOTDIR"/etc/apt/sources.list.d/java-repos.list
 if [[ "$1" == minicom/* ]]; then
     echo "deb http://le.c3sl.ufpr.br/le5 educ main" \
         >> "$CHROOTDIR"/etc/apt/sources.list.d/le-repos.list
+    echo "deb http://le.c3sl.ufpr.br/le5 le5-stable main" \
+        >> "$CHROOTDIR"/etc/apt/sources.list.d/le-repos.list
 else
     echo "deb http://$LEHOST educ main" \
         >> "$CHROOTDIR"/etc/apt/sources.list.d/le-repos.list
@@ -90,9 +92,13 @@ sed -i s/'exec update-grub'/'# exec update-grub'/g \
     "$CHROOTDIR"/etc/kernel/postinst.d/zz-update-grub
 
 
-# Installs le-autoupgrade so the apt_preferences file is in place for the
-# rest of the process
-chroot "$CHROOTDIR" apt-get -y --force-yes install le-autoupgrade
+# Installs {le,minicom}-autoupgrade so the apt_preferences file is in place
+# for the rest of the process
+if [[ "$1" == minicom/* ]]; then
+    chroot "$CHROOTDIR" apt-get -y --force-yes install minicom-autoupgrade
+else
+    chroot "$CHROOTDIR" apt-get -y --force-yes install le-autoupgrade
+fi
 
 closeChroot
 
-- 
GitLab