#!/bin/echo Source me: .
#
# Copyright (c) 2002-2004 by Frederick Bruckman
# All rights reserved.

# Emit approximately one <category>/<subdirectory> pair for each
# installed package to standard out. We can't do any better than
# "approximately one", because packages move around, are split up
# and recombined, and names change!
#
dump_installed () {
	(cd "$PKG_DBDIR" && ls -d *-[0-9]*) \
	| while read pkgname
	do
		basename=${pkgname%%-[0-9]*}
		canonify ${basename}'-[0-9].*'
	done
}
