]> git.pld-linux.org Git - packages/ekg2.git/commitdiff
- --with git: allow to specify branch (as %ekg2branch macro)
authorpawelz <pawelz@pld-linux.org>
Tue, 28 Dec 2010 21:07:18 +0000 (21:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ekg2.spec -> 1.141

ekg2.spec

index 8cf39ddaabdb487362d981bd90a89d3831920def..688c2b60b41ec019d914ded9bb3dc24d809fb803 100644 (file)
--- a/ekg2.spec
+++ b/ekg2.spec
@@ -338,11 +338,15 @@ Wtyczka xosd dla ekg2.
 %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}
This page took 0.118759 seconds and 4 git commands to generate.