From c88521a3e79b7d19283534f3ce1b9b641ae9f276 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Mon, 29 Jul 2024 17:15:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Ddebian10=E5=88=A4=E6=96=ADgli?= =?UTF-8?q?bc=E7=89=88=E6=9C=AC=E7=9A=84=E9=97=AE=E9=A2=98=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=8E=A8=E8=8D=90wine=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wine/installwine | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wine/installwine b/wine/installwine index 808c3cf..74f9b53 100755 --- a/wine/installwine +++ b/wine/installwine @@ -350,8 +350,13 @@ class GetInfo(): result = True if (data == "termux" and self.isTermux): result = True - if (self.compareVersion(self.glibcVersion, data) == 1): - result = True + try: + if (self.compareVersion(self.glibcVersion, data) == 1 or + self.compareVersion(self.glibcVersion, data) == 0): + result = True + except: + # 如果检查 tag 出现问题,强制返回符合条件 + return True if (os.path.exists(data)): result = True if (no):