Fix edge case with install-composer which results in composer not being installed/reinstalled due to the state of get-composer not changing.

This commit is contained in:
Matt Kelch 2015-09-28 13:39:20 -04:00
parent ee6a24419e
commit 2567557fac

View File

@ -15,9 +15,10 @@ get-composer:
- pkg: php - pkg: php
install-composer: install-composer:
cmd.wait: cmd.run:
- name: {{ php.temp_dir }}/installer --filename={{ php.composer_bin }} --install-dir={{ php.local_bin }} - name: {{ php.temp_dir }}/installer --filename={{ php.composer_bin }} --install-dir={{ php.local_bin }}
- watch: - unless: test -f {{ install_file }}
- require:
- file: get-composer - file: get-composer
# Get COMPOSER_DEV_WARNING_TIME from the installed composer, and if that time has passed # Get COMPOSER_DEV_WARNING_TIME from the installed composer, and if that time has passed