Merge pull request #4997 from PrzemoF/copr_fix_v39
[COPR] Restore dist in Release
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
Name: %{name}
|
||||
Epoch: 1
|
||||
Version: 0.19
|
||||
Release: pre_{{{ git_commit_no }}}
|
||||
Release: pre_{{{git_commit_no}}}%{?dist}
|
||||
Summary: A general purpose 3D CAD modeler
|
||||
Group: Applications/Engineering
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
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 $((commits + 1))
|
||||
echo -n $((commits + 1))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user