Skip to content

Commit d7cb1f2

Browse files
committed
Fixes debug url in command and prepare 0.6.1
Signed-off-by: Jay MOULIN <[email protected]>
1 parent d315b36 commit d7cb1f2

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION ?= 0.6.0
1+
VERSION ?= 0.6.1
22
CACHE ?= --no-cache=1
33
FULLVERSION ?= ${VERSION}
44
archs ?= amd64 arm32v6 arm64v8 i386

src/Command.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
6767
$iNbUrl > 1 && $output->isVerbose() && $progress->advance();
6868
if (!$oResult) {
6969
throw new \DomainException(
70-
"Unable to parse $sUrl." . PHP_EOL .
71-
"Consider creating an issue on " .
70+
"Unable to parse $sUrl." . PHP_EOL . "Consider creating an issue on " .
7271
"https://github.com/jaymoulin/yamete/issues/"
7372
);
7473
}
@@ -148,9 +147,9 @@ private function download(ResultIterator $oResult, OutputInterface $output)
148147
$bSuccess = false;
149148
foreach ($oResult as $sFileName => $oResource) {
150149
$bSuccess = true;
151-
$sPath = $oResource->getPath();
150+
$sPath = $oResource->getUrl();
152151
$output->writeln(
153-
PHP_EOL . "<question>Downloading $sPath : $sFileName</question>",
152+
PHP_EOL . "<question>Downloading $sPath > $sFileName</question>",
154153
OutputInterface::VERBOSITY_VERY_VERBOSE
155154
);
156155
$oResource->download();

0 commit comments

Comments
 (0)