From 8887ab04dab9d5233451feac515d4aeeef9fe998 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Wed, 14 Dec 2022 15:26:26 +0300 Subject: [PATCH] Removing obsolete stuff --- deps.inc.php | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/deps.inc.php b/deps.inc.php index d37f654..d499c1e 100644 --- a/deps.inc.php +++ b/deps.inc.php @@ -3,22 +3,15 @@ namespace taskman; task('deps_update', function() { - update_composer(); + update_composer(true); }); -function update_composer() +//NOTE: COMPOSER_FORCE_UPDATE = true will make composer to update packages and +// a lock file +// COMPOSER_FORCE_UPDATE = false will make composer install dependencies +// listed in a lock file in case if it's present +function update_composer($COMPOSER_FORCE_UPDATE = false) { global $GAME_ROOT; include("$GAME_ROOT/composer/update.php"); } - -function try_update_composer() -{ - global $GAME_ROOT; - - if(!need_to_regen("$GAME_ROOT/composer/composer.last", ["$GAME_ROOT/composer/composer.json"])) - return false; - - update_composer(); - return true; -}