Codebase list debian-goodies / 7f6b348
Further optimise dglob by removing two evals Gbp-Dch: Ignore Axel Beckert 6 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
2323 eval set -- "$ARGS"
2424
2525
26 filter="grep-dctrl -FStatus ' installed'"
26 filter="grep-dctrl -FStatus installed"
2727 archfilter="cat"
2828 expand="cat"
2929 grep_dctrl_options=""
7474
7575 # Does the package exist?
7676 if [ "$all" = "no" ] ; then
77 packages=$(eval $filter /var/lib/dpkg/status | \
77 packages=$($filter /var/lib/dpkg/status | \
7878 $archfilter | \
7979 grep-dctrl -PnsPackage $grep_dctrl_options "$package")
8080 if [ -z "$packages" ] ; then
8181 exit 1
8282 fi
83 eval $filter /var/lib/dpkg/status
83 $filter /var/lib/dpkg/status
8484 else
8585 # Use grep-available as the status file does not include all available
8686 # packages