From ff41344e972a433e9ba8e8743f5f433613fe6970 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Thu, 1 Feb 2024 18:47:47 +0800 Subject: [PATCH] =?UTF-8?q?arch=E6=9B=B4=E6=96=B0=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mainwindow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.py b/mainwindow.py index c4c68f7..70cb582 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -1279,7 +1279,7 @@ class UpdateWindow(): isArch = False if os.path.exists("/etc/arch-release"): isArch = True - if UpdateWindow.data["Url-pkg"][0] == "": + if UpdateWindow.data["Url-pkg"][0] == None: unPackageNew = True try: print(UpdateWindow.data["Url"]) @@ -1311,7 +1311,7 @@ rm -rfv /tmp/spark-deepin-wine-runner/update/* echo 关闭“Wine 运行器” python3 "{programPath}/updatekiller.py" echo 下载安装包 -wget -P /tmp/spark-deepin-wine-runner/update {UpdateWindow.data["Url"][0]} +wget -P /tmp/spark-deepin-wine-runner/update {UpdateWindow.data["Url-pkg"][0]} echo 安装安装包 pacman -U /tmp/spark-deepin-wine-runner/update/* notify-send -i "{iconPath}" "更新完毕!"