Skip to contentSkip to conversation

support/download/file: fix file:// protocol handling

PATCH Superseded Angelo Compagnucci 2 participants 2 messages May 7, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support/download/file: fix file:// protocol handling

This patch removes the file:// prefix from file url before passing it to the cp command. It fixes also a missing / between url directory and file part.

---
 support/download/file | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
support/download/file +1 -1
index fefd6d2..6dd37b0 100755
@@ -40,4 +40,4 @@ _localfiles() {
     eval ${LOCALFILES} "${@}"
 }
 
-_localfiles ${verbose} "'${dir}${file}'" "'${output}'"
+_localfiles ${verbose} "'${dir##file://}/${file}'" "'${output}'"
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 support/download/file: fix file:// protocol handling

Hello Angelo,

Quoted 5 lines · Angelo Compagnucci

This patch removes the file:// prefix from file url before passing it to the cp command. It fixes also a missing / between url directory and file part.

I think it would be good to add a specific example that was failing for
you: an example defconfig, and the relevant part of the build log. This will help in the future if we wonder why this change was done.

Indeed, your commit log describes *what* is done (which is easily guessed by looking at the code itself), but not *why* it is done.

I think it is especially important to explain that it is a regression (and since when).

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com