Fix issue with apt-get update not being run on Ubuntu 16.04 94/4994/1
authorEd Warnicke <eaw@cisco.com>
Thu, 2 Feb 2017 00:08:51 +0000 (16:08 -0800)
committerDave Wallace <dwallacelf@gmail.com>
Thu, 2 Feb 2017 02:22:41 +0000 (02:22 +0000)
Change-Id: Ic05b86c4ea9b62afbf03a2a36c4a2ef45f5c140b
Signed-off-by: Ed Warnicke <eaw@cisco.com>
(cherry picked from commit eb82e7f27c6f8fe84838e6e2914579825c455632)

Makefile

index 292b0d2..31b0019 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -157,8 +157,8 @@ ifeq ($(OS_ID),ubuntu)
 ifeq ($(OS_VERSION_ID),14.04)
        @sudo -E apt-get $(CONFIRM) $(FORCE) install software-properties-common
        @sudo -E add-apt-repository ppa:openjdk-r/ppa $(CONFIRM)
-       @sudo -E apt-get update
 endif
+       @sudo -E apt-get update
        @sudo -E apt-get $(CONFIRM) $(FORCE) install $(DEB_DEPENDS)
 else ifneq ("$(wildcard /etc/redhat-release)","")
        @sudo yum groupinstall $(CONFIRM) $(RPM_DEPENDS_GROUPS)