From: rhatto Date: Mon, 30 Mar 2009 02:25:13 +0000 (+0000) Subject: generic model: more fixes for downloading git repositories X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=fa7cfdd850913278915f74408e47d2c8a39142af;p=simplepkg.git 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 --- 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" 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