From 164e68ba1b6bdbd46db0cfe4b298051297fe9686 Mon Sep 17 00:00:00 2001 From: Ismael Luceno Date: Wed, 27 Apr 2011 07:23:43 -0300 Subject: bzr_download.function: fix tarball generation --- bzr_download.function | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bzr_download.function') diff --git a/bzr_download.function b/bzr_download.function index 86d79180ca..9eab2916f9 100755 --- a/bzr_download.function +++ b/bzr_download.function @@ -8,7 +8,7 @@ function bzr_download() { if file_exists $SOURCE_CACHE/$SOURCE then message "${MESSAGE_COLOR}Unpacking the source...${DEFAULT_COLOR}" && - tar xjf $SOURCE_CACHE/$SOURCE && + tar xjf $SOURCE_CACHE/$SOURCE -C $(dirname $SOURCE_DIRECTORY) && cd $SOURCE_DIRECTORY && message "${MESSAGE_COLOR}Updating...${DEFAULT_COLOR}" && echo bzr update && @@ -21,6 +21,6 @@ function bzr_download() { fi && message "${MESSAGE_COLOR}Repacking the source...${DEFAULT_COLOR}" && - tar cjf $SOURCE $SOURCE_DIRECTORY && + tar cjf $SOURCE -C $(dirname $SOURCE_DIRECTORY) $(basename $SOURCE_DIRECTORY) && mv $SOURCE $SOURCE_CACHE } -- cgit v1.2.3