lib/specinfra/command/debian/base/package.rb in specinfra-2.11.1 vs lib/specinfra/command/debian/base/package.rb in specinfra-2.11.2
- old
+ new
@@ -16,10 +16,10 @@
if version
full_package = "#{package}=#{version}"
else
full_package = package
end
- "DEBIAN_FRONTEND='noninteractive' apt-get -y #{option} install #{full_package}"
+ "DEBIAN_FRONTEND='noninteractive' apt-get -y -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confold' #{option} install #{full_package}"
end
def get_version(package, opts=nil)
"dpkg-query -f '${Status} ${Version}' -W #{package} | sed -n 's/^install ok installed //p'"
end