From 55b6803bcfe74b620632597e0de63c6956061bc0 Mon Sep 17 00:00:00 2001
From: Robert Nelson <robertcnelson@gmail.com>
Date: Mon, 10 Dec 2018 15:26:54 -0600
Subject: [PATCH] chroot: ros as extra package crud, cleanup

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
---
 scripts/chroot.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/chroot.sh b/scripts/chroot.sh
index 97822f765..bd6343b2f 100755
--- a/scripts/chroot.sh
+++ b/scripts/chroot.sh
@@ -681,6 +681,8 @@ cat > "${DIR}/chroot_script.sh" <<-__EOF__
 		if [ ! "x${repo_ros_pkg_list}" = "x" ] ; then
 			echo "Log: (chroot) Installing (from external repo): ${repo_ros_pkg_list}"
 			apt-get -y install ${repo_ros_pkg_list}
+			#ROS: ubuntu, extra crude, cleanup....
+			apt autoremove -y || true
 		fi
 
 		if [ ! "x${repo_rcnee_chromium_special}" = "x" ] ; then
-- 
GitLab