1
0
Эх сурвалжийг харах

[test] Remove esoteric apt-get in Vagrantfile

Removes an esoteric `apt-get update` variant used in Vagrantfile that was
causing only parts of the apt repository to update. That was the point of
the command but when it would leave the repository only half built which
made installing anything but Java difficult. The speed isn't worth the
complexity.
Nik Everett 10 жил өмнө
parent
commit
c427b3e9c2
1 өөрчлөгдсөн 1 нэмэгдсэн , 3 устгасан
  1. 1 3
      Vagrantfile

+ 1 - 3
Vagrantfile

@@ -127,9 +127,7 @@ def deb_common(config, add_openjdk_repository_command, openjdk_list)
       ls /etc/apt/sources.list.d/#{openjdk_list}.list > /dev/null 2>&1 ||
       ls /etc/apt/sources.list.d/#{openjdk_list}.list > /dev/null 2>&1 ||
         (echo "Importing java-8 ppa" &&
         (echo "Importing java-8 ppa" &&
           #{add_openjdk_repository_command} &&
           #{add_openjdk_repository_command} &&
-          apt-get update -o \
-            Dir::Etc::sourcelist="$(ls /etc/apt/sources.list.d/#{openjdk_list}.list)" \
-            -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0")
+          apt-get update)
 SHELL
 SHELL
   )
   )
 end
 end