diff options
-rwxr-xr-x | xibuild | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -90,6 +90,8 @@ xibuild () { # try get the commit hash for the package if git ls-remote -q $SOURCE &> /dev/null; then VER_HASH=$(git ls-remote $SOURCE $BRANCH ) + elif hg identify $SOURCE &> /dev/null; then + VER_HASH=$(hg identify $SOURCE) else VER_HASH=$(curl -Ls $SOURCE | md5sum) fi @@ -116,6 +118,9 @@ xibuild () { if git ls-remote -q $SOURCE $BRANCH &> /dev/null; then git clone $SOURCE . >> $LOGFILE 2>&1 && printf "$PASS fetched $(du -sh $PKG_BUILD_DIR | awk '{ print $1 }') source\n" || return 1; git checkout $BRANCH >> $LOGFILE 2>&1 + + elif hg identify $SOURCE &> /dev/null; then + hg clone $SOURCE . >> $LOGFILE 2>&1 && printf "$PASS fetched $(du -sh $PKG_BUILD_DIR | awk '{ print $1 }') source\n" || return 1; else DOWNLOADED=$(basename $SOURCE) curl -Ls $SOURCE > $DOWNLOADED |