Merge remote-tracking branch 'origin/main' into docs

This commit is contained in:
DubbleClick
2025-06-18 10:49:43 +07:00
12 changed files with 150 additions and 44 deletions

View File

@@ -80,7 +80,7 @@ abstract class BaseCommand extends Command
$this->output = $output;
global $ob_logger;
if ($input->getOption('debug')) {
if ($input->getOption('debug') || $output->getVerbosity() > OutputInterface::VERBOSITY_NORMAL) {
$ob_logger = new ConsoleLogger(LogLevel::DEBUG, decorated: !$input->getOption('no-ansi'));
define('DEBUG_MODE', true);
} else {

View File

@@ -60,7 +60,7 @@ class DeleteDownloadCommand extends BaseCommand
foreach ($deleted_sources as $lock_name) {
// remove download file/dir if exists
if ($lock[$lock_name]['source_type'] === 'archive') {
if ($lock[$lock_name]['source_type'] === SPC_SOURCE_ARCHIVE) {
if (file_exists($path = FileSystem::convertPath(DOWNLOAD_PATH . '/' . $lock[$lock_name]['filename']))) {
logger()->info('Deleting file ' . $path);
unlink($path);