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

Collapse All | Expand All

(-)qpkg.orig (-1 / +14 lines)
Lines 407-413 Link Here
407
			do
407
			do
408
				rdepend=$(< ${deppkg}/RDEPEND)
408
				rdepend=$(< ${deppkg}/RDEPEND)
409
409
410
				for flag in $(< ${deppkg}/USE)
410
				# Find the USE flags used by the dependency package
411
				deppkg_use=$( (
412
					if [[ -r ${deppkg}USE && -r ${deppkg}IUSE ]]; then
413
						for use_flag in $(<${deppkg}IUSE); do
414
							use=$(grep -E -o "(^| )${use_flag}" ${deppkg}USE | tr -d '\n')
415
							use=${use# }
416
							[ "${use}" == "" ] && echo -n "-"
417
							echo -n "${use_flag} "
418
						done
419
						echo
420
					fi )
421
				)
422
423
				for flag in $deppkg_use
411
				do
424
				do
412
					if [[ "${flag:0:1}" == "-" ]]; then
425
					if [[ "${flag:0:1}" == "-" ]]; then
413
						rdepend=$(echo ${rdepend} | sed "s/${flag:1}? ( [[:alnum:][:punct:]]* )//")
426
						rdepend=$(echo ${rdepend} | sed "s/${flag:1}? ( [[:alnum:][:punct:]]* )//")

Return to bug 36355