Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=f9320fd406e7df5cdfd648714c8e30f50beb322e
commit f9320fd406e7df5cdfd648714c8e30f50beb322e
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date: Sun Jul 20 22:17:47 2008 +0200
include/scm.sh: use git ls-remote for up2date
diff --git a/source/include/scm.sh b/source/include/scm.sh
index 979b892..66c6976 100644
--- a/source/include/scm.sh
+++ b/source/include/scm.sh
@@ -88,7 +88,7 @@ elif [ "$_F_scm_type" == "subversion" ]; then
up2date="echo -n svn; svn log $_F_scm_url --limit=1 |sed -n '/^r/s/r\([0-9]\+\)
.*/\1/p'"
makedepends=([EMAIL PROTECTED] 'subversion')
elif [ "$_F_scm_type" == "git" ]; then
- up2date="date +%Y%m%d%H%M%S --date '`curl -I $_F_scm_url/HEAD 2>&1|sed
-n '/^Last-Modified/s/^[^:]*: //p'`'"
+ up2date="echo -n ${pkgver%%.g*}.g;git ls-remote $_F_scm_url|sed
's/^\(.\{7\}\).*/\1/;q'"
makedepends=([EMAIL PROTECTED] 'git')
elif [ "$_F_scm_type" == "mercurial" ]; then
# it seems that _every_ repo url has the same web interface which has a nice rss
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git