diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-02-19 07:38:32 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-02-19 07:38:32 +0000 |
commit | fd268ea38bc8448e841fde35fcd11740a32492bb (patch) | |
tree | 2e1c36d00cc55852d9605cb8a43ac2f2755254e1 /scripts/functions | |
parent | f920df9c09851148be297628691bab5ea9f8d062 (diff) | |
download | crosstool-ng-fd268ea38bc8448e841fde35fcd11740a32492bb.tar.gz crosstool-ng-fd268ea38bc8448e841fde35fcd11740a32492bb.tar.bz2 crosstool-ng-fd268ea38bc8448e841fde35fcd11740a32492bb.zip |
Fix extracting tarballs.
/trunk/scripts/functions | 6 5 1 0 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions index 39173e87..740db805 100644 --- a/scripts/functions +++ b/scripts/functions @@ -609,7 +609,11 @@ CT_Extract() { esac # Some tarballs have read-only files... :-( - chmod -R u+w "${basename}" + if [ "${nochdir}" = "nochdir" ]; then + chmod -R u+w . + else + chmod -R u+w "${basename}" + fi touch "${CT_SRC_DIR}/.${basename}.extracted" |