aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-03-30 02:25:13 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2009-03-30 02:25:13 +0000
commitfa7cfdd850913278915f74408e47d2c8a39142af (patch)
treec8b7901b011bb99bb3e06827a8fe05b189b0c12f
parentd36dc2507b709f3325f6aaff971f39d1d226f653 (diff)
downloadsimplepkg-fa7cfdd850913278915f74408e47d2c8a39142af.tar.gz
simplepkg-fa7cfdd850913278915f74408e47d2c8a39142af.tar.bz2
generic model: more fixes for downloading git repositories
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@805 04377dda-e619-0410-9926-eae83683ac58
-rw-r--r--trunk/mkbuild/generic.mkSlackBuild4
1 files changed, 2 insertions, 2 deletions
diff --git a/trunk/mkbuild/generic.mkSlackBuild b/trunk/mkbuild/generic.mkSlackBuild
index de74ed5..d2049e0 100644
--- a/trunk/mkbuild/generic.mkSlackBuild
+++ b/trunk/mkbuild/generic.mkSlackBuild
@@ -144,9 +144,9 @@ cd "$PKG_SRC"
<git_source> off
# Get git source code
cd "$SRC_DIR"
-SND_DIR="`basename [[DOWNLOAD FOLDER URL]]`"
+SND_DIR="$PKG_NAME.git"
-if [ "`find "$SRC_DIR/" -name .git`" != "" ] && [ -d "$SRC_DIR/$SND_DIR" ]; then
+if [ "`find "$SRC_DIR/" -name *.git`" != "" ] && [ -d "$SRC_DIR/$SND_DIR" ]; then
cd $SND_DIR
git pull || exit $ERROR_VCS
else