mdt-install-package: Only update the local repository on install

This prevents a network fetch each time we do a package install via mdt.

Change-Id: Ibd39087eaa2b19e5ba119b9eb38e0bcce31c9c59
diff --git a/debian/changelog b/debian/changelog
index dad7230..1b9db1b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,7 +2,8 @@
 
   * Adjusting the mdt avahi service to advertise correctly.
   * Fixing the MDT servicename to match RFC requirements.
-
+  * Making mdt-install-package only update the local repository.
+  
  -- AIY Projects <support-aiyprojects@google.com>  Tue, 05 Feb 2019 11:12:41 -0800
 
 mdt-services (1-1) mendel-beaker; urgency=medium
diff --git a/usr/sbin/mdt-install-package b/usr/sbin/mdt-install-package
index 9bf10ec..bf4847c 100755
--- a/usr/sbin/mdt-install-package
+++ b/usr/sbin/mdt-install-package
@@ -116,7 +116,12 @@
         || die failed to add package to repository: $package_to_install
 
     local package_name=$(get-package-name $package_to_install)
-    apt-get -qq update
+
+    apt-get -qq update \
+            --no-list-cleanup \
+            -o Dir::Etc::SourceList="sources.list.d/00-mdt-services.list" \
+            -o Dir::Etc::SourceParts="-"
+
     apt-get install --reinstall $package_name
 
     remove-package $package_to_install \