]> gitweb.fluxo.info Git - puppet-apt.git/commitdiff
exec{'apt_dist-upgrade'} just requires Exec['apt_updated'] if apt::disable_update...
authornadir <nadir-technik@nadir.org>
Wed, 19 Dec 2012 17:30:29 +0000 (18:30 +0100)
committernadir <nadir-technik@nadir.org>
Wed, 19 Dec 2012 17:30:29 +0000 (18:30 +0100)
manifests/dist_upgrade.pp

index 47b1cff65319d342cbc89eddb1d87003fa36cae2..ed25b0baafed0ad1d2e8542e9c51022780fcebac 100644 (file)
@@ -7,7 +7,10 @@ class apt::dist_upgrade {
   exec { 'apt_dist-upgrade':
     command     => "/usr/bin/apt-get -q -y -o 'DPkg::Options::=--force-confold' dist-upgrade",
     refreshonly => true,
-    require     => Exec['apt_updated'],
+    require     => $apt::disable_update ? {
+      true    => undef,
+      default => Exec['apt_updated'],
+    }
   }
 
 }