Gmane
From: Peter Ruskin <aoyu93 <at> dsl.pipex.com>
Subject: Re: Re: [gentoo-core] Gentoo Stable site update
Newsgroups: gmane.linux.gentoo.devel
Date: 2003-01-02 18:51:52 GMT (5 years, 35 weeks, 3 days, 7 hours and 25 minutes ago)
On Thursday 02 Jan 2003 18:29, Joachim Blaabjerg wrote:
> On Thursday 02 January 2003 11:28, Maik Schreiber wrote:
> > Hi, a few updates to the Gentoo Stable site
> > [...]
>
> Hm, just a quick question.
>
> Are there any tools available that scans the system for packages that
> are merged and marked unstable (~), and submits those as "merged
> successfully on my system"? I know I have a lot of unstable packages on
> my system, but I haven't got the time to through all of them and submit
> them to the Gentoo-stable site.
>
----------------------------------------------------------------------
#!/bin/sh
#
# /usr/local/bin/list-tested
#
# Lists ebuilds installed with 'ACCEPT_KEYWORDS="~x86"'
#
# Peter Ruskin <aoyu93 <at> dsl.pipex.com>

LOGFILE=/home/peter/Gentoo/logs/list-tested-$(date +%Y-%m-%d-%H%M).log
# Sort the world file
WORLD=/var/cache/edb/world
SORTEDWORLD=$(mktemp $0.XXXXXX)
sort -u $WORLD > $SORTEDWORLD

# Make ~x86 list from cache in same format as world file
TESTING=$(mktemp $0.XXXXXX)
grep -r '~x86' /var/cache/edb/dep/* | cut -d/ -f6-7 | cut -d: -f1 | cut 
-d. -f1 | cut -d- -f1-3 | sed s/-[0-9].*//g > $TESTING
SORTEDTESTING=$(mktemp $0.XXXXXX)
sort -u $TESTING > $SORTEDTESTING

# Report matches and add versions
RESULT1=$(mktemp $0.XXXXXX)
RESULT2=$(mktemp $0.XXXXXX)
comm -12 $SORTEDWORLD $SORTEDTESTING > $RESULT1
cat $RESULT1 | cut -d/ -f2 > $RESULT2

touch $LOGFILE
echo "These ebuilds were installed using 'ACCEPT_KEYWORDS=\"~x86\"':"
echo "These ebuilds were installed using 'ACCEPT_KEYWORDS=\"~x86\"':" > 
$LOGFILE
cat $RESULT2 | xargs epm -qG | tee -a $LOGFILE

# Clean up
rm $SORTEDWORLD $TESTING $SORTEDTESTING $RESULT1 $RESULT2
----------------------------------------------------------------------

-- 
Gentoo Linux release 1.4rc1 Unstable. KDE: 3.1.0 (RC5) Qt: 3.1.0
AMD Athlon(tm) XP 1900+ 512MB.	Kernel: 2.4.20-win4lin-r1-pnr.	GCC 3.2.1
Linux user #275590 (http://counter.li.org/). up 23:50.

--
gentoo-dev <at> gentoo.org mailing list