From: Antoine Beaupre Date: Wed, 24 Jun 2009 19:46:08 +0000 (-0400) Subject: create the Packages file when the distributions file change X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=ff239a726ff530326ed7a56ad5ea6203a6f9bd3f;p=puppet-reprepro.git create the Packages file when the distributions file change --- diff --git a/manifests/init.pp b/manifests/init.pp index 099693e..037786d 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -83,6 +83,10 @@ class reprepro { refreshonly => true, subscribe => File["$basedir/conf/distributions"], path => "/usr/bin:/bin"; + "reprepro -b $basedir export": + refreshonly => true, + subscribe => File["$basedir/conf/distributions"], + path => "/usr/bin:/bin"; "gpg --export -a `gpg --with-colon --list-secret-keys | awk -F ':' '{ print $5 }' | head -1` > $basedir/key.asc": creates => "$basedir/key.asc", subscribe => File["$basedir/.gnupg"],