File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -89,14 +89,12 @@ sudo mock -r ${config} --use-bootstrap-image --isolation=simple --init
89
89
mock_root=$( sudo mock -r ${config} --use-bootstrap-image --isolation=simple --print-root-path)
90
90
sudo mock -r ${config} --use-bootstrap-image --isolation=simple --install rpmdevtools git rpm-build cmake python python3-sphinx gcc openssl-devel
91
91
sudo mock -r ${config} --use-bootstrap-image --isolation=simple --copyin " $( pwd) " " $( pwd) /${spec_file} " /tmp
92
- if [ ! -f VERSION_CURRENT ]; then
93
- sudo mock -r ${config} --use-bootstrap-image --isolation=simple --cwd " /tmp/${build_dir} " --chroot -- /bin/sh -c " (
94
- set -o xtrace ;
95
- python build/calc_release_version.py | sed -E 's/([^-]+).*/\1/' > VERSION_CURRENT ;
96
- python build/calc_release_version.py -p > VERSION_RELEASED
97
- )"
98
- sudo mock -r ${config} --use-bootstrap-image --isolation=simple --copyout " /tmp/${build_dir} /VERSION_CURRENT" " /tmp/${build_dir} /VERSION_RELEASED" .
99
- fi
92
+ sudo mock -r ${config} --use-bootstrap-image --isolation=simple --cwd " /tmp/${build_dir} " --chroot -- /bin/sh -c " (
93
+ set -o xtrace ;
94
+ python build/calc_release_version.py | sed -E 's/([^-]+).*/\1/' > VERSION_CURRENT ;
95
+ python build/calc_release_version.py -p > VERSION_RELEASED
96
+ )"
97
+ sudo mock -r ${config} --use-bootstrap-image --isolation=simple --copyout " /tmp/${build_dir} /VERSION_CURRENT" " /tmp/${build_dir} /VERSION_RELEASED" .
100
98
101
99
bare_upstream_version=$( sed -E ' s/([^-]+).*/\1/' VERSION_CURRENT)
102
100
# Upstream version in the .spec file cannot have hyphen (-); replace the current
You can’t perform that action at this time.
0 commit comments