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

Collapse All | Expand All

(-)dep-clean.orig (-3 / +4 lines)
Lines 7-13 Link Here
7
7
8
tmp="/tmp/$$"
8
tmp="/tmp/$$"
9
9
10
#Get PORTDIR_OVERLAY from portage
10
#Get PORTDIR and PORTDIR_OVERLAY from portage
11
PORTDIR="$(/usr/lib/portage/bin/portageq portdir)"
11
PORTDIR_OVERLAY="$(/usr/lib/portage/bin/portageq portdir_overlay)"
12
PORTDIR_OVERLAY="$(/usr/lib/portage/bin/portageq portdir_overlay)"
12
13
13
rm -rf ${tmp} > /dev/null 2>&1
14
rm -rf ${tmp} > /dev/null 2>&1
Lines 173-180 Link Here
173
fi
174
fi
174
175
175
cat ${tmp}/current | grep -f ${tmp}/world | sort > ${tmp}/world.inst
176
cat ${tmp}/current | grep -f ${tmp}/world | sort > ${tmp}/world.inst
176
find /usr/portage ${PORTDIR_OVERLAY} -iname '*.ebuild' | \
177
find ${PORTDIR} ${PORTDIR_OVERLAY} -iname '*.ebuild' | \
177
	cut -f4,6 -d/ | sed -e 's:\.ebuild::' > ${tmp}/ebuilds
178
	sed 's:.*/\(.*/.*\).ebuild:\1:' > ${tmp}/ebuilds
178
grep -xf ${tmp}/world.inst ${tmp}/ebuilds >> ${tmp}/world.new
179
grep -xf ${tmp}/world.inst ${tmp}/ebuilds >> ${tmp}/world.new
179
180
180
if [ ${verb} ]; then
181
if [ ${verb} ]; then

Return to bug 10159