mirror of
https://github.com/wcbing/wcbing-apt-repo.git
synced 2025-12-29 02:28:30 +08:00
fix: 修正 Packages 字段提取
This commit is contained in:
parent
2985595af5
commit
816bc804e3
@ -97,9 +97,9 @@ def split_latest(packages_file_content: bytes):
|
||||
if part.strip()
|
||||
]
|
||||
|
||||
find_name = re.compile(rb"Package: (.+)")
|
||||
find_arch = re.compile(rb"Architecture: (.+)")
|
||||
find_version = re.compile(rb"Version: (.+)")
|
||||
find_name = re.compile(rb"Package:[ ]*(.+)")
|
||||
find_arch = re.compile(rb"Architecture:[ ]*(.+)")
|
||||
find_version = re.compile(rb"Version:[ ]*(.+)")
|
||||
|
||||
for package in package_list:
|
||||
name = "unknown"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user