mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
ignore blanks in Packages
This commit is contained in:
parent
5901d7484c
commit
bba730ffd5
@ -164,6 +164,8 @@ def apt_mirror(base_url: str, dist: str, repo: str, arch: str, dest_base_dir: Pa
|
||||
err = 0
|
||||
deb_count = 0
|
||||
for pkg in pkgidx_content.split('\n\n'):
|
||||
if len(pkg) < 10: # ignore blanks
|
||||
continue
|
||||
try:
|
||||
pkg_filename = pattern_package_name.search(pkg).group(1)
|
||||
pkg_size = int(pattern_package_size.search(pkg).group(1))
|
||||
|
Loading…
x
Reference in New Issue
Block a user