From 4abd925a9aba733e87ec5952b2c6d4993061ced0 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 18 May 2022 12:33:18 +0300 Subject: [PATCH] Simplifying composer update logic --- deps.inc.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/deps.inc.php b/deps.inc.php index 26cfdeb..36e8455 100644 --- a/deps.inc.php +++ b/deps.inc.php @@ -1,17 +1,6 @@ true], function() -{ - global $GAME_ROOT; - - if(try_update_composer()) - echo "Composer was updated...\n"; - - if(file_exists("$GAME_ROOT/composer/vendor/composer/autoload_real.php")) - include_once("$GAME_ROOT/composer/vendor/autoload.php"); -}); - task('deps_update', function() { update_composer(); @@ -21,6 +10,7 @@ function update_composer() { global $GAME_ROOT; include("$GAME_ROOT/composer/update.php"); + touch("$GAME_ROOT/composer/composer.last"); } function try_update_composer() @@ -31,6 +21,5 @@ function try_update_composer() return false; update_composer(); - touch("$GAME_ROOT/composer/composer.last"); return true; }