diff --git a/utils/Commands/RepositoryextensionCommand.php b/utils/Commands/RepositoryextensionCommand.php index f50e5d247..b1f4805a0 100644 --- a/utils/Commands/RepositoryextensionCommand.php +++ b/utils/Commands/RepositoryextensionCommand.php @@ -41,7 +41,7 @@ class RepositoryextensionCommand extends Command { $this->setName('ext:repository') ->setDescription('Get list of extensions from repository') - ->setHelp('') + ->setHelp('Retrieves the list of extensions from the repository and checks which of them can be updated or installed. If --url is not set, the repository url from the SeedDMS configuraton is used.') ->addOption('url', '', InputOption::VALUE_REQUIRED, 'Url of repository.', null) ; } diff --git a/utils/Commands/UpdateextensionCommand.php b/utils/Commands/UpdateextensionCommand.php index e73e4afc1..ca15cbf9c 100644 --- a/utils/Commands/UpdateextensionCommand.php +++ b/utils/Commands/UpdateextensionCommand.php @@ -41,7 +41,7 @@ class UpdateextensionCommand extends Command { $this->setName('ext:update') ->setDescription('Check for extension upates') - ->setHelp('') + ->setHelp('Retrieves the list of extensions from the repository and offers to either update or install those extension, which met the dependencies. If --url is not set, the repository url from the SeedDMS configuraton is used.') ->addOption('url', '', InputOption::VALUE_REQUIRED, 'Url of repository.', null) ; } @@ -106,7 +106,7 @@ class UpdateextensionCommand extends Command $output->writeln(sprintf("Update extension '%s' to version %s.", $extname, $answer)); if ($tmpfile = $extmgr->getExtensionFromRepository($update[$answer]['filename'])) { - if (0&&!$extmgr->updateExtension($tmpfile)) { + if (!$extmgr->updateExtension($tmpfile)) { foreach ($extmgr->getErrorMsgs() as $msg) { $output->writeln(sprintf("%s", $msg)); } @@ -135,7 +135,7 @@ class UpdateextensionCommand extends Command $output->writeln(sprintf("Install extension '%s' to version %s.", $extname, $answer)); if ($tmpfile = $extmgr->getExtensionFromRepository($install[$answer]['filename'])) { - if (0&&!$extmgr->updateExtension($tmpfile)) { + if (!$extmgr->updateExtension($tmpfile)) { foreach ($extmgr->getErrorMsgs() as $msg) { $output->writeln(sprintf("%s", $msg)); }