public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] Adding metadata.xml files is past half way
@ 2003-12-30 23:57 Paul de Vrieze
  2003-12-31  0:53 ` Jeremy Maitin-Shepard
  0 siblings, 1 reply; 2+ messages in thread
From: Paul de Vrieze @ 2003-12-30 23:57 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: signed data --]
[-- Type: text/plain, Size: 1019 bytes --]


I just did some find's on my portage tree and I got the following results:

#number packages: 
find -name "*.ebuild"| cut -d "/" -f 2,3|uniq|wc -l
   6244

#number of metadata.xml files:
find -name "metadata.xml"| cut -d "/" -f 2,3|uniq|wc -l
   3607

#Combined size of the metadata files:
ls -l pkgList.xml
-rw-r--r--    1 paul     users      643455 Dec 31 00:41 pkgList.xml

#Number of references of no-herd (Get this to zero)
egrep no-?herd pkgList.xml |wc -l
    442

#Number of distinct herds mentioned, including noherd and no-herd:
grep "<herd" pkgList.xml|sed -e "s,\([ \t]*\),,g"|sort |uniq |wc -l
     90

#Number of actual herds in the herds.xml file:
grep "<herd" herds.xml |wc -l
     72

###### WHERE DID THOSE 18-2=16 PHANTOM HERDS COME FROM ??? ######

I'll get a list of those fantom herds tomorrow, but for now. Keep on creating 
metadata.xml files and herds.

Paul

-- 
Paul de Vrieze
Gentoo Developer
Mail: pauldv@gentoo.org
Homepage: http://www.devrieze.net

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-dev] Adding metadata.xml files is past half way
  2003-12-30 23:57 [gentoo-dev] Adding metadata.xml files is past half way Paul de Vrieze
@ 2003-12-31  0:53 ` Jeremy Maitin-Shepard
  0 siblings, 0 replies; 2+ messages in thread
From: Jeremy Maitin-Shepard @ 2003-12-31  0:53 UTC (permalink / raw
  To: gentoo-dev

Paul de Vrieze <pauldv@gentoo.org> writes:

> [snip]

> #Number of actual herds in the herds.xml file:
> grep "<herd" herds.xml |wc -l
>      72

Actually there are only 70, try:

grep -A 1 '<herd>' herds.xml | grep '<name>' \
  | sed -e 's/^.*<name>\([^<]*\)<\/name>.*$/\1/' \
  | herds.txt

wc -l herds.txt
     70 herds.txt

> ###### WHERE DID THOSE 18-2=16 PHANTOM HERDS COME FROM ??? ######

> I'll get a list of those fantom herds tomorrow, but for now. Keep on creating 
> metadata.xml files and herds.

After storing the list of unique metadata-listed herds in
herds-metadata.txt:

( while read x; do \
  if ! grep $x herds.txt >/dev/null; \
    then echo $x; \
  fi; done ) < herds-metadata.txt

app-text
desktop-dock
desktop-misc,python
dev-dotnet
dev-perl
gcc-porting
kde-base
kde-themes
media-gfx
media-sound
media-video
mysql-bugs
net-irc
net-misc
net-www
no-herd
noherd
sys-libs
system-tools
wireless

-- 
Jeremy Maitin-Shepard

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-31  0:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-30 23:57 [gentoo-dev] Adding metadata.xml files is past half way Paul de Vrieze
2003-12-31  0:53 ` Jeremy Maitin-Shepard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox