On Fri, 2005-11-18 at 10:16 -0600, Brian Harring wrote:
[snip]

> Still have issues with it- revdep-rebuild for example can't rely on 
> NEEDED until a repository regen script is written.


# How about something like this then?

cd ${ROOT}/var/db/pkg || exit 1

for f in *-*/*/CONTENTS ; do
        NEEDED="${f%/*}/NEEDED"
        if [[ ! -e $NEEDED ]]; then
                grep ^obj $f | awk '{print $2}' | scanelf -BF"%F %n" -f - > 
$NEEDED
        fi
done


-- 
Ned Ludd <[EMAIL PROTECTED]>
Gentoo Linux

-- 
gentoo-portage-dev@gentoo.org mailing list

Reply via email to