[packaging] Fix COPR building system

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
Przemo Firszt
2022-01-30 20:21:13 +00:00
committed by wwmayer
parent d69401107b
commit 4d395f85bb
2 changed files with 1 additions and 4 deletions

View File

@@ -1,2 +1,3 @@
[rpkg]
auto_pack = False
user_macros = "${git_props:root}/rpkg.macros"

View File

@@ -1,4 +0,0 @@
function git_commit_no {
commits=$(curl -s 'https://api.github.com/repos/FreeCAD/FreeCAD/compare/120ca87015...master' | grep "ahead_by" | sed -s 's/ //g' | sed -s 's/"ahead_by"://' | sed -s 's/,//')
echo -n $((commits + 1))
}