When searching a matching extension for a file, also check for the empty extension.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jun 16 18:04:05 2007 +0000 (2007-06-16)
changeset 1605bfea1685da4
parent 159 6daa8b5df1b4
child 161 be4484f10ac7
When searching a matching extension for a file, also check for the empty extension.
scripts/functions
     1.1 --- a/scripts/functions	Sat Jun 16 18:01:59 2007 +0000
     1.2 +++ b/scripts/functions	Sat Jun 16 18:04:05 2007 +0000
     1.3 @@ -244,7 +244,10 @@
     1.4      local got_it=1
     1.5  
     1.6      CT_Pushd "${CT_TARBALLS_DIR}"
     1.7 -    for ext in .tar.gz .tar.bz2 .tgz .tar; do
     1.8 +    # we need to also check for an empty extension for those very
     1.9 +    # peculiar components that don't have one (such as sstrip from
    1.10 +    # buildroot).
    1.11 +    for ext in .tar.gz .tar.bz2 .tgz .tar ''; do
    1.12          if [ -f "${file}${ext}" ]; then
    1.13              echo "${ext}"
    1.14              got_it=0