apt-download: more precise Packages file matching

This commit is contained in:
bigeagle 2016-09-01 20:57:08 +08:00
parent fea45f9779
commit 77786fde61

View File

@ -72,7 +72,7 @@ function apt-download-binary() {
fi fi
filesize=${tokens[1]} filesize=${tokens[1]}
filename=${tokens[2]} filename=${tokens[2]}
if [[ "$filename" =~ ${repo}/binary-${arch} ]]; then if [[ "$filename" =~ ^${repo}/binary-${arch} ]]; then
# Load package list from Packages file # Load package list from Packages file
pkgidx_filename=`basename $filename` pkgidx_filename=`basename $filename`
pkgidx_file="${pkgidx_tmp_dir}/${pkgidx_filename}" pkgidx_file="${pkgidx_tmp_dir}/${pkgidx_filename}"