board: Use mdt-install-package to properly install
Instead of using "dpkg" and "apt-get -f install", we should use
mdt-install-package, which makes use of the on-device local package repository
to simplify the installation of local packages.
Change-Id: I3db5794f7845807dcf3a112335ace5f89064b951
diff --git a/board.sh b/board.sh
index 5261387..e2d9813 100755
--- a/board.sh
+++ b/board.sh
@@ -62,9 +62,7 @@
try scp ${SSH_OPTIONS} -C "${filename}" mendel@${BOARD_IP_ADDRESS}:/tmp
local basename=$(basename "${filename}")
- try ssh ${SSH_OPTIONS} -Ct mendel@${BOARD_IP_ADDRESS} " \
- sudo dpkg -i /tmp/${basename}; \
- sudo apt-get -f -y install"
+ try ssh ${SSH_OPTIONS} -Ct mendel@${BOARD_IP_ADDRESS} "sudo /usr/sbin/mdt-install-package /tmp/${basename};"
}
function command::push