Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=d820f3e86e985b449cfe08f27ac32eeea86611f6

commit d820f3e86e985b449cfe08f27ac32eeea86611f6
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Wed Dec 9 13:48:12 2009 +0100

scm.sh: improve _F_scm_git_cloneopts based on kernel.sh

diff --git a/source/include/kernel.sh b/source/include/kernel.sh
index 24d30e2..0c11a13 100644
--- a/source/include/kernel.sh
+++ b/source/include/kernel.sh
@@ -159,7 +159,6 @@ install="src/kernel.install"
if Fuse $USE_DEVEL; then
source=(config.i686 config.x86_64 config.ppc)
signatures=('' '' '')
-       [ -d $HOME/git/${_F_scm_url##*/} ] && _F_scm_git_cloneopts="--reference 
$HOME/git/${_F_scm_url##*/}"
_F_scm_tag="v$pkgver"
Finclude scm
fi
diff --git a/source/include/scm.sh b/source/include/scm.sh
index 54ae5c3..36433a8 100644
--- a/source/include/scm.sh
+++ b/source/include/scm.sh
@@ -143,6 +143,9 @@ Funpack_scm()
fi
git checkout -f
else
+                       if [ -d $HOME/git/${_F_scm_url##*/} ]; then
+                               _F_scm_git_cloneopts="$_F_scm_git_cloneopts 
--reference $HOME/git/${_F_scm_url##*/}"
+                       fi
git clone $_F_scm_git_cloneopts $_F_scm_url $pkgname || Fdie
cd $pkgname
fi
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to