mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-04-20 04:12:42 +00:00
apt-download: more precise Packages file matching
This commit is contained in:
parent
fea45f9779
commit
77786fde61
@ -72,7 +72,7 @@ function apt-download-binary() {
|
||||
fi
|
||||
filesize=${tokens[1]}
|
||||
filename=${tokens[2]}
|
||||
if [[ "$filename" =~ ${repo}/binary-${arch} ]]; then
|
||||
if [[ "$filename" =~ ^${repo}/binary-${arch} ]]; then
|
||||
# Load package list from Packages file
|
||||
pkgidx_filename=`basename $filename`
|
||||
pkgidx_file="${pkgidx_tmp_dir}/${pkgidx_filename}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user