On Sun, Sep 25, 2022 at 08:23:08PM +0200, Michał Górny wrote:
Transform the URIs to lowercase in unpacker_src_uri_depends() for consistency with the behavior of _unpacker().
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
eclass/unpacker.eclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index 482cf141ee1d..e07c25d0ffa9 100644
--- a/eclass/unpacker.eclass
+++ b/eclass/unpacker.eclass
@@ -509,7 +509,8 @@ unpacker_src_uri_depends() {
fi
for uri in "$@" ; do
- case ${uri} in
+ local m=${uri,,}
+ case ${m} in
*.cpio.*|*.cpio)
d="app-arch/cpio" ;;
*.rar|*.RAR)
If m is always lowercased, no need to check for uppercased extensions?
--
2.37.3
Transform the URIs to lowercase in unpacker_src_uri_depends() for
consistency with the behavior of _unpacker().
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
eclass/unpacker.eclass | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/eclass/unpacker.eclass b/eclass/unpacker.eclass
index 482cf141ee1d..e07c25d0ffa9 100644
--- a/eclass/unpacker.eclass
+++ b/eclass/unpacker.eclass
@@ -509,7 +509,8 @@ unpacker_src_uri_depends() {
fi
for uri in "$@" ; do
- case ${uri} in
+ local m=${uri,,}
+ case ${m} in
*.cpio.*|*.cpio)
d="app-arch/cpio" ;;
*.rar|*.RAR)
--
2.37.3
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 489 |
Nodes: | 16 (2 / 14) |
Uptime: | 28:39:40 |
Calls: | 9,665 |
Files: | 13,716 |
Messages: | 6,168,604 |