Skip to content

Commit 26584bc

Browse files
committed
fix: ENABLE_STATIC_BOX not enable
should use OS_VERSION rather than VERSION LOG:
1 parent f80b156 commit 26584bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

debian/rules

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
include /usr/share/dpkg/pkg-info.mk
33

44
OS=$(shell awk '/^NAME=/' /etc/os-release | sed 's/NAME=//' | sed 's/\"//g' | tr '[:upper:]' '[:lower:]')
5-
OSVERSION=$(shell awk '/VERSION=/' /etc/os-release | sed 's/VERSION=//' | sed 's/\"//g' | sed 's/[.]0/./')
5+
OS_VERSION=$(shell awk '/VERSION=/' /etc/os-release | sed 's/VERSION=//' | sed 's/\"//g' | sed 's/[.]0/./')
66
ARCH=$(shell dpkg-architecture -qDEB_TARGET_MULTIARCH)
77
ENABLE_UAB_SUPPORT=FALSE
88
ENABLE_STATIC_BOX=FALSE
99

10-
ifeq ($(OS) $(VERSION), deepin 23)
10+
ifeq ($(OS) $(OS_VERSION), deepin 23)
1111
ENABLE_UAB_SUPPORT=TRUE
1212
ENABLE_STATIC_BOX=TRUE
1313
endif
1414

15-
ifeq ($(OS) $(VERSION), uos 20)
15+
ifeq ($(OS) $(OS_VERSION), uos 20)
1616
ENABLE_UAB_SUPPORT=TRUE
1717
ENABLE_STATIC_BOX=TRUE
1818
endif

0 commit comments

Comments
 (0)