Skip to content

Commit 1161d00

Browse files
committed
fix scratch_orphan to use world
1 parent a700180 commit 1161d00

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

scratch

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1292,15 +1292,15 @@ scratch_missingdep() {
12921292
}
12931293

12941294
scratch_orphan() {
1295-
tmpallpkg="/tmp/.pkgquery_allpkg.$$"
1296-
tmpalldep="/tmp/.pkgquery_alldep.$$"
1297-
for pkg in $(allinstalled); do
1298-
echo $pkg >> $tmpallpkg
1299-
dep="$dep $(get_depends $pkg)"
1295+
tmpdeplistworld="/tmp/.deplistworld.$$"
1296+
tmpallinstalled="/tmp/.allinstalled.$$"
1297+
for i in $(cat $WORLD_FILE); do
1298+
deplist $i
13001299
done
1301-
echo $dep | tr ' ' '\n' | sort | uniq > "$tmpalldep"
1302-
grep -xvF -f "$tmpalldep" "$tmpallpkg"
1303-
rm "$tmpalldep" "$tmpallpkg"
1300+
echo $DEP | tr ' ' '\n' > $tmpdeplistworld
1301+
allinstalled > $tmpallinstalled
1302+
grep -xvF -f $tmpdeplistworld $tmpallinstalled
1303+
rm $tmpallinstalled $tmpdeplistworld
13041304
}
13051305

13061306
scratch_path() {

0 commit comments

Comments
 (0)