From 2567557fac43ca13e16e19c692a23c993788cb9c Mon Sep 17 00:00:00 2001 From: Matt Kelch Date: Mon, 28 Sep 2015 13:39:20 -0400 Subject: [PATCH] Fix edge case with install-composer which results in composer not being installed/reinstalled due to the state of get-composer not changing. --- php/composer.sls | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/php/composer.sls b/php/composer.sls index 49c7aa7..374b36f 100644 --- a/php/composer.sls +++ b/php/composer.sls @@ -15,9 +15,10 @@ get-composer: - pkg: php install-composer: - cmd.wait: + cmd.run: - name: {{ php.temp_dir }}/installer --filename={{ php.composer_bin }} --install-dir={{ php.local_bin }} - - watch: + - unless: test -f {{ install_file }} + - require: - file: get-composer # Get COMPOSER_DEV_WARNING_TIME from the installed composer, and if that time has passed