1 |
On Thursday 26 October 2006 00:57, Alec Warner wrote: |
2 |
> Caleb Cushing wrote: |
3 |
> > reporting additions of new programs aren't feasible? or are you |
4 |
> > referring to version updates and package bumps and such.... |
5 |
> |
6 |
> Reporting removals will be done by treecleaners once I have it implemented. |
7 |
> |
8 |
> Reporting additions may require some cvs foo on lark; such as new |
9 |
> directories in ${PORTDIR}/$CAT/ |
10 |
> |
11 |
> Someone needs to implement the foo; however. |
12 |
|
13 |
(Not on cvs, but on a normal tree, but maybe works on cvs. There is a sanity |
14 |
check by checking that a dir contains at least 1 ebuild) |
15 |
|
16 |
===== start ===== |
17 |
OLDPKGS=/var/cache/gwn/oldpkgs |
18 |
NEWPKGS=`mktemp -t` |
19 |
find /usr/portage -mindepth 2 -maxdepth 2 |while read in |
20 |
do |
21 |
EB=`echo $in/*.ebuild` |
22 |
if [ -n "$EB" ]; then |
23 |
echo $in |
24 |
fi |
25 |
done >$NEWPKGS |
26 |
#These are new packages |
27 |
cat $OLDPKGS $OLDPKGS $NEWPKGS|sort |uniq -u |
28 |
|
29 |
#Old packages can be retrieved almost similarly: |
30 |
#cat $OLDPKGS $NEWPKGS $NEWPKGS|sort |uniq -u |
31 |
|
32 |
mv $NEWPKGS $OLDPKGS |
33 |
===== end ===== |
34 |
|
35 |
Paul |
36 |
|
37 |
-- |
38 |
Paul de Vrieze |
39 |
Gentoo Developer |
40 |
Mail: pauldv@g.o |
41 |
Homepage: http://www.devrieze.net |