[Lsb-messages] /var/www/bzr/lsb/devel/puppet-lsb r281: Invalidate cached info about the installed SDK when the SDK updates.

Jeff Licquia licquia at linuxfoundation.org
Thu Mar 29 20:28:10 UTC 2012


------------------------------------------------------------
revno: 281
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: puppet-lsb
timestamp: Thu 2012-03-29 16:28:10 -0400
message:
  Invalidate cached info about the installed SDK when the SDK updates.
modified:
  modules/buildbot/manifests/slave.pp
-------------- next part --------------
=== modified file 'modules/buildbot/manifests/slave.pp'
--- a/modules/buildbot/manifests/slave.pp	2012-03-29 18:51:05 +0000
+++ b/modules/buildbot/manifests/slave.pp	2012-03-29 20:28:10 +0000
@@ -237,6 +237,13 @@
         target => "/opt/buildbot/$betasdk",
     }
 
+    exec { 'invalidate-installed-sdk':
+        command     => [ 'rm', '-f', '/tmp/last_installed_sdk' ],
+        refreshonly => true,
+        subscribe   => [ File['/opt/buildbot/lsb-released-sdk.tar.gz'],
+                         File['/opt/buildbot/lsb-beta-sdk.tar.gz'] ],
+    }
+
     file { "/etc/init.d/buildslave":
         ensure  => present,
         content => template("buildbot/buildslave.init.erb"),



More information about the lsb-messages mailing list