packages: ekg2/ekg2.spec - --with git: allow to specify branch (as %ekg2bra...

pawelz pawelz at pld-linux.org
Tue Dec 28 22:07:23 CET 2010


Author: pawelz                       Date: Tue Dec 28 21:07:23 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- --with git: allow to specify branch (as %ekg2branch macro)

---- Files affected:
packages/ekg2:
   ekg2.spec (1.140 -> 1.141) 

---- Diffs:

================================================================
Index: packages/ekg2/ekg2.spec
diff -u packages/ekg2/ekg2.spec:1.140 packages/ekg2/ekg2.spec:1.141
--- packages/ekg2/ekg2.spec:1.140	Tue Dec 28 17:16:50 2010
+++ packages/ekg2/ekg2.spec	Tue Dec 28 22:07:18 2010
@@ -339,11 +339,15 @@
 %if %{with git}
 %setup -q -T -c -n %{name}-%{subver}
 repo="%ekg2repo"
+branch="%ekg2branch"
 if [ "$repo" = "%%ekg2repo" ]; then
 repo="git://github.com/leafnode/ekg2.git"
 fi
+if [ "$branch" = "%%ekg2branch" ]; then
+repo="master"
+fi
 git init
-git fetch $repo master
+git fetch $repo $branch
 git checkout FETCH_HEAD
 %else
 %setup -q -c -n %{name}-%{subver}
@@ -562,6 +566,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.141  2010/12/28 21:07:18  pawelz
+- --with git: allow to specify branch (as %ekg2branch macro)
+
 Revision 1.140  2010/12/28 16:16:50  pawelz
 - plugin-scripting-python R: python-modules
 - rel 3
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ekg2/ekg2.spec?r1=1.140&r2=1.141&f=u



More information about the pld-cvs-commit mailing list