arch更新链接错误

This commit is contained in:
gfdgd xi 2024-02-01 18:47:47 +08:00
parent 0ec98cffcb
commit ff41344e97

View File

@ -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}" "更新完毕!"