Removing obsolete stuff

This commit is contained in:
Pavel Shevaev 2022-12-14 15:26:26 +03:00
parent a65f495d22
commit 8887ab04da
1 changed files with 6 additions and 13 deletions

View File

@ -3,22 +3,15 @@ namespace taskman;
task('deps_update', function() 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; global $GAME_ROOT;
include("$GAME_ROOT/composer/update.php"); 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;
}