Fix extracting tarballs.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Feb 19 07:38:32 2009 +0000 (2009-02-19)
changeset 121511df94e12b58
parent 1213 61e11b37185a
child 1216 331bd4bc4305
Fix extracting tarballs.

/trunk/scripts/functions | 6 5 1 0 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
scripts/functions
     1.1 --- a/scripts/functions	Tue Feb 17 21:05:10 2009 +0000
     1.2 +++ b/scripts/functions	Thu Feb 19 07:38:32 2009 +0000
     1.3 @@ -609,7 +609,11 @@
     1.4      esac
     1.5  
     1.6      # Some tarballs have read-only files... :-(
     1.7 -    chmod -R u+w "${basename}"
     1.8 +    if [ "${nochdir}" = "nochdir" ]; then
     1.9 +        chmod -R u+w .
    1.10 +    else
    1.11 +        chmod -R u+w "${basename}"
    1.12 +    fi
    1.13  
    1.14      touch "${CT_SRC_DIR}/.${basename}.extracted"
    1.15