Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 53509
Collapse All | Expand All

(-)/usr/bin/qpkg (-3 / +5 lines)
Lines 296-315 Link Here
296
fi
296
fi
297
297
298
# get list of ebuilds to work on
298
# get list of ebuilds to work on
299
if [ "${ffind}" ]; then
299
if [ "${ffind}" ]; then	
300
	# file find mode - list all ebuilds for 
300
	# file find mode - list all ebuilds for 
301
	# package/CONTENTS containing <arg>
301
	# package/CONTENTS containing <arg>
302
	if [ "${fpat}" ]; then
302
	if [ "${fpat}" ]; then
303
		norm_file=`readlink -f ${arg}`
303
		dirs=`ls /var/db/pkg/${group}/*/CONTENTS \
304
		dirs=`ls /var/db/pkg/${group}/*/CONTENTS \
304
		| xargs grep -l "${arg}" \
305
		| xargs grep -l "${norm_file}"  \
305
		| xargs --no-run-if-empty -n 1 dirname`
306
		| xargs --no-run-if-empty -n 1 dirname`
306
	else
307
	else
307
		# if the user didnt specify a full path assume they
308
		# if the user didnt specify a full path assume they
308
		# want to check in the working dir #17331
309
		# want to check in the working dir #17331
309
		[ "${arg:0:1}" != "/" ] && arg="${PWD}/${arg}"
310
		[ "${arg:0:1}" != "/" ] && arg="${PWD}/${arg}"
310
311
312
		norm_file=`readlink -f ${arg}`
311
		dirs=`ls /var/db/pkg/${group}/*/CONTENTS \
313
		dirs=`ls /var/db/pkg/${group}/*/CONTENTS \
312
		| xargs grep -Fl " ${arg}" \
314
		| xargs grep -Fl " ${norm_file}" \
313
		| xargs --no-run-if-empty -n 1 dirname`
315
		| xargs --no-run-if-empty -n 1 dirname`
314
	fi
316
	fi
315
	ipak=`(
317
	ipak=`(

Return to bug 53509