Skip to content

Commit a9713c3

Browse files
committed
polish merge
1 parent 3af40a6 commit a9713c3

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/SPC/store/Downloader.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -650,17 +650,6 @@ private static function isAlreadyDownloaded(string $name, bool $force, int $down
650650
return true;
651651
}
652652
}
653-
654-
// If lock file exists, skip downloading for source mode
655-
if (!$force && $download_as === SPC_DOWNLOAD_PACKAGE && isset($lock[$name])) {
656-
if (
657-
$lock[$name]['source_type'] === SPC_SOURCE_ARCHIVE && file_exists(DOWNLOAD_PATH . '/' . $lock[$name]['filename']) ||
658-
$lock[$name]['source_type'] === SPC_SOURCE_GIT && is_dir(DOWNLOAD_PATH . '/' . $lock[$name]['dirname'])
659-
) {
660-
logger()->notice("Package [{$name}] already downloaded: " . ($lock[$name]['filename'] ?? $lock[$name]['dirname']));
661-
return true;
662-
}
663-
}
664653
return false;
665654
}
666655
}

src/SPC/util/UnixShell.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@ public function getEnvString(): string
117117
return trim($str);
118118
}
119119

120-
/**
121-
* @param string $cmd
122-
* @return string
123-
*/
124120
private function getExecString(string $cmd): string
125121
{
126122
logger()->debug('Executed at: ' . debug_backtrace()[0]['file'] . ':' . debug_backtrace()[0]['line']);

0 commit comments

Comments
 (0)