summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-09-24 16:32:41 +0200
committerMichał Górny <mgorny@gentoo.org>2022-09-27 22:28:00 +0200
commit24a688688e75e737f45edd668883fa5ee672a474 (patch)
treee75b3cdf581c57f64549913a0b09312c01e8376d /eclass/unpacker.eclass
parentunpacker.eclass: Use bash substitution instead of tr for lowercase (diff)
downloadgentoo-24a688688e75e737f45edd668883fa5ee672a474.tar.gz
gentoo-24a688688e75e737f45edd668883fa5ee672a474.tar.bz2
gentoo-24a688688e75e737f45edd668883fa5ee672a474.zip
unpacker.eclass: Use lowercase in unpacker_src_uri_depends
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>
Diffstat (limited to 'eclass/unpacker.eclass')
-rw-r--r--eclass/unpacker.eclass3
1 files changed, 2 insertions, 1 deletions
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)