allow long apt arguments in extra_packages

This commit is contained in:
parazyd 2017-05-16 15:56:01 +02:00
parent 1a15a3f36b
commit e4ea70d60e
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 3 additions and 1 deletions

View File

@ -157,7 +157,9 @@ apt-get update
## check if all our extra_packages exist
allpkgs="\$(apt-cache search '.' | cut -d' ' -f1)"
for i in ${extra_packages} ; do
printf "%s" "\$allpkgs" | grep -q "^\$i$" || missing="\$missing \$i"
printf "%s" "\$allpkgs" | grep -q "^\$i$" || {
printf "%s" "\$i" | greq -q "^--.*" || missing="\$missing \$i"
}
done
[ -n "\$missing" ] && {