]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
generic model: more fixes for downloading git repositories
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 30 Mar 2009 02:25:13 +0000 (02:25 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Mon, 30 Mar 2009 02:25:13 +0000 (02:25 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@805 04377dda-e619-0410-9926-eae83683ac58

trunk/mkbuild/generic.mkSlackBuild

index de74ed50380b10a160058ece6b34c893c62082e0..d2049e0ebdf28d949045ee7fb01934d9fd21042b 100644 (file)
@@ -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