[Frugalware-git] frugalware-current: include/scm.sh: update bzr up2date to just check for the pkgver suffix like the git one does

Miklos Vajna vmiklos at frugalware.org
Tue Aug 3 02:15:43 CEST 2010


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=e11dfa8e393a089c638bb07a5bef3edc149e2e66

commit e11dfa8e393a089c638bb07a5bef3edc149e2e66
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Tue Aug 3 02:15:04 2010 +0200

include/scm.sh: update bzr up2date to just check for the pkgver suffix like the git one does

diff --git a/source/include/scm.sh b/source/include/scm.sh
index 36433a8..280e765 100644
--- a/source/include/scm.sh
+++ b/source/include/scm.sh
@@ -95,7 +95,7 @@ elif [ "$_F_scm_type" == "mercurial" ]; then
up2date="date +%Y%m%d%H%M%S --date '`lynx -dump $_F_scm_url/?style=rss|grep pubDate|sed 's/.*>\(.*\)<.*/\1/;q'`'"
makedepends=(${makedepends[@]} 'mercurial')
elif [ "$_F_scm_type" == "bzr" ]; then
-	up2date="bzr log -r revno:-1 $_F_scm_url|grep ^revno|sed 's/revno: /bzr/'"
+	up2date="echo -n ${pkgver%%.bzr*}.bzr;bzr revno $_F_scm_url"
makedepends=(${makedepends[@]} 'bzr')
fi


More information about the Frugalware-git mailing list