Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 35895 | Differences between
and this patch

Collapse All | Expand All

(-)qpkg.orig (-7 / +3 lines)
Lines 304-320 Link Here
304
		| xargs grep -l " ${arg}\( .*\)*$" \
304
		| xargs grep -l " ${arg}\( .*\)*$" \
305
		| xargs --no-run-if-empty -n 1 dirname`
305
		| xargs --no-run-if-empty -n 1 dirname`
306
	fi
306
	fi
307
	ipak=`(
307
	ipak=$dirs
308
	for d in ${dirs} -;do
309
		[ "-" = "$d" ] && break
310
		ls ${d}/*.ebuild
311
	done)`
312
else
308
else
313
	# normal mode - list ebuilds for ebuild name containing <arg>
309
	# normal mode - list ebuilds for ebuild name containing <arg>
314
310
315
	# installed packages
311
	# installed packages
316
	if [ ! "${uninst}" ]; then
312
	if [ ! "${uninst}" ]; then
317
		ipak=`find /var/db/pkg/ -iname "*.ebuild" 2>/dev/null`
313
		ipak=`ls /var/db/pkg/${group}/*`
318
		if [[ ${group} != "*" ]]; then
314
		if [[ ${group} != "*" ]]; then
319
		    ipak=`echo ${ipak}|sed -e "s: :\n:g"|grep ${group}`
315
		    ipak=`echo ${ipak}|sed -e "s: :\n:g"|grep ${group}`
320
		fi
316
		fi
Lines 349-355 Link Here
349
345
350
	# cut common prefix from ebuild name and mark installed/uninstalled packages
346
	# cut common prefix from ebuild name and mark installed/uninstalled packages
351
	# Note: iii/uuu will be replaced by the pipe at the end
347
	# Note: iii/uuu will be replaced by the pipe at the end
352
	n=${p%.ebuild}
348
	n=${p%:}
353
	var_db_pkg="/var/db/pkg/"
349
	var_db_pkg="/var/db/pkg/"
354
	n=${n/${var_db_pkg}/iii }
350
	n=${n/${var_db_pkg}/iii }
355
	usr_portage="/usr/portage/"
351
	usr_portage="/usr/portage/"

Return to bug 35895