Hello, It would be nice if epkginfo recognized the restrict attribute in metadata.xml. An example of how it is not exactly desired is below: %% epkginfo gcc Package: sys-devel/gcc Herd: toolchain Maintainer: anant@gentoo.org Location: /usr/portage/sys-devel/gcc %% cat /usr/portage/sys-devel/gcc/metadata.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>toolchain</herd> <maintainer restrict="the D language addon"> <email>anant@gentoo.org</email> </maintainer> Thanks for looking =)
It's already implemented ;) It'll hopefully be in the next major release of gentoolkit as `equery meta' dja@vault trunk $ ./equery.py meta gcc * sys-devel/gcc Herd: toolchain Maintainer: (for the D language addon) anant@gentoo.org Upstream: None specified Description: None specified [...]
(In reply to comment #1) > It's already implemented ;) It'll hopefully be in the next major release of > gentoolkit as `equery meta' > > dja@vault trunk $ ./equery.py meta gcc > * sys-devel/gcc > Herd: toolchain > Maintainer: (for the D language addon) > anant@gentoo.org > Upstream: None specified > Description: None specified > > [...] > Oh cool. How does it handle net-p2p/rtorrent. In my case, I don't want to be on bugs unless it involves the init scripts. %% cat /usr/portage/net-p2p/rtorrent/metadata.xml <maintainer> <email>darkside@gentoo.org</email> <description>Only CC on bugs regarding the init script.</description> </maintainer> I guess I could edit the metadata to have a restrict attribute too..
(In reply to comment #2) > (In reply to comment #1) > > It's already implemented ;) It'll hopefully be in the next major release of > > gentoolkit as `equery meta' > > > > dja@vault trunk $ ./equery.py meta gcc > > * sys-devel/gcc > > Herd: toolchain > > Maintainer: (for the D language addon) > > anant@gentoo.org > > Upstream: None specified > > Description: None specified > > > > [...] > > > > Oh cool. How does it handle net-p2p/rtorrent. In my case, I don't want to be on > bugs unless it involves the init scripts. > %% cat /usr/portage/net-p2p/rtorrent/metadata.xml > <maintainer> > <email>darkside@gentoo.org</email> > <description>Only CC on bugs regarding the init script.</description> > </maintainer> > > I guess I could edit the metadata to have a restrict attribute too.. > Does this look OK? dja@vault trunk $ ./equery.py meta rtorrent * net-p2p/rtorrent Herd: no-herd Maintainer: loki_val@gentoo.org Peter Alfredsen I've changed too much to avoid adding myself drizzt@gentoo.org Timothy Redaelli Secondary Maintainer darkside@gentoo.org Only CC on bugs regarding the init script. Upstream: None specified Description: Console BitTorrent client using ncurses based on libtorrent written in C++. USE flags: daemon Uses app-misc/screen to daemonize this application"
> USE flags: daemon > Uses app-misc/screen to daemonize this application" That extra quotation mark at the end is in the metadata file :)
yah, that is great. I'll let you decide how to handle this bug, resolve if you want.
This is not working in gentoolkit-0.3.0_rc8 # cd /usr/portage; fgrep "maintainer restrict" */*/metadata.xml net-firewall/iptables/metadata.xml:<maintainer restrict="imq and l7filter extensions"> ... # equery meta --maintainer iptables * net-firewall/iptables [portage] pva@gentoo.org # equery meta iptables * net-firewall/iptables [portage] Herd: base-system (base-system@gentoo.org) Maintainer: pva@gentoo.org Upstream: None specified Location: /usr/portage/net-firewall/iptables Keywords: 1.4.3.2:0: alpha amd64 arm hppa ia64 m68k ppc ppc64 s390 sh sparc x86 Keywords: 1.4.5:0: Keywords: 1.4.6:0: ~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 # equery meta --xml iptables * net-firewall/iptables [portage] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>base-system</herd> <maintainer restrict="imq and l7filter extensions"> <email>pva@gentoo.org</email> </maintainer> <longdescription> iptables is the userspace command line program used to set up, maintain, and inspect the tables of IPv4 packet filter rules in the Linux kernel. It's a part of packet filtering framework which allows the stateless and stateful packet filtering, all kinds of network address and port translation, and is a flexible and extensible infrastructure with multiple layers of API's for 3rd party extensions. The iptables package also includes ip6tables. ip6tables is used for configuring the IPv6 packet filter. Note that some extensions (e.g. imq and l7filter) are not included into official kernel sources so you have to patch the sources before installation. </longdescription> </pkgmetadata>
(In reply to comment #6) > This is not working in gentoolkit-0.3.0_rc8 Fixed in genscripts repo r148. Please merge.
Released in gentoolkit-0.3.0_rc9