Removing obsolete stuff
This commit is contained in:
parent
a65f495d22
commit
8887ab04da
19
deps.inc.php
19
deps.inc.php
|
@ -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;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue