]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
Sometimes killing apt is too aggressive.
authorMorgan Haskel <morgan@puppetlabs.com>
Mon, 11 Aug 2014 19:56:32 +0000 (15:56 -0400)
committerMorgan Haskel <morgan@puppetlabs.com>
Mon, 11 Aug 2014 19:56:32 +0000 (15:56 -0400)
spec/acceptance/unattended_upgrade_spec.rb

index 80291248641fca03c8e19e5934add41482263e14..02ebea4ec9fea95c8dad9fa2456e1d3c1c015881 100644 (file)
@@ -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)