Adds packages flags according to an array containing packages names.
$val is an array reference (as returned by get_packages_list) containing package names,
or a regular expression matching against the fullname,
if enclosed in slashes.
%options :