mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-27 16:38:06 +08:00
读取depends和recommends
This commit is contained in:
parent
b1fb27ad9b
commit
c443796f85
@ -1085,7 +1085,9 @@ def ReadDeb(unzip = False):
|
|||||||
"Package": e1_text,
|
"Package": e1_text,
|
||||||
"Version": e2_text,
|
"Version": e2_text,
|
||||||
"Description": e3_text,
|
"Description": e3_text,
|
||||||
"Maintainer": e4_text
|
"Maintainer": e4_text,
|
||||||
|
"Recommends": debRecommend,
|
||||||
|
"Depends": debDepends
|
||||||
}
|
}
|
||||||
for i in lists:
|
for i in lists:
|
||||||
# 遍历文件
|
# 遍历文件
|
||||||
@ -1094,7 +1096,7 @@ def ReadDeb(unzip = False):
|
|||||||
lnkMap[items[:items.index(":")]].setText(items[items.index(":") + 1:].strip())
|
lnkMap[items[:items.index(":")]].setText(items[items.index(":") + 1:].strip())
|
||||||
except:
|
except:
|
||||||
# 报错忽略
|
# 报错忽略
|
||||||
print(f"{items}项忽略")
|
print(f"“{items}”项忽略")
|
||||||
# 判断 postrm 文件是不是自动移除脚本
|
# 判断 postrm 文件是不是自动移除脚本
|
||||||
# 解包主文件
|
# 解包主文件
|
||||||
if not unzip:
|
if not unzip:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user