fix python version parsing for py 3.10
Fixes: https://pagure.io/koji/issue/2975
This commit is contained in:
parent
dfce69f6bf
commit
5f65cf63b7
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
PYVER := $(shell $(PYTHON) -c 'import sys; print("%.1s" %(sys.version))')
|
||||
PYVER_MAJOR := $(shell $(PYTHON) -c 'import sys; print(".".join(sys.version.split(".")[:1]))')
|
||||
|
||||
BINFILES = kojid
|
||||
LIBEXECFILES = mergerepos
|
||||
|
|
@ -22,7 +22,7 @@ _install:
|
|||
mkdir -p $(DESTDIR)/usr/sbin
|
||||
install -p -m 755 $(BINFILES) $(DESTDIR)/usr/sbin
|
||||
|
||||
@if [ "$(PYVER)" -lt 3 ] ; then \
|
||||
@if [ "$(PYVER_MAJOR)" -lt 3 ] ; then \
|
||||
mkdir -p $(DESTDIR)/usr/libexec/kojid; \
|
||||
install -p -m 755 $(LIBEXECFILES) $(DESTDIR)/usr/libexec/kojid; \
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue