From 44b70f1588ccf71b1a8888cf664513f9d3ccd6cb Mon Sep 17 00:00:00 2001 From: Morgan Haskel Date: Mon, 11 Aug 2014 15:56:32 -0400 Subject: [PATCH] Sometimes killing apt is too aggressive. --- spec/acceptance/unattended_upgrade_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/acceptance/unattended_upgrade_spec.rb b/spec/acceptance/unattended_upgrade_spec.rb index 8029124..02ebea4 100644 --- a/spec/acceptance/unattended_upgrade_spec.rb +++ b/spec/acceptance/unattended_upgrade_spec.rb @@ -13,6 +13,7 @@ describe 'apt::unattended_upgrades class', :unless => UNSUPPORTED_PLATFORMS.incl # something holding the package database open. shell('killall -9 apt-get', { :acceptable_exit_codes => [0,1] }) shell('killall -9 dpkg', { :acceptable_exit_codes => [0,1] }) + shell('dpkg --configure -a') end apply_manifest(pp, :catch_failures => true) -- 2.45.2