public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] eqawarn for main tree
@ 2010-03-12 19:39 Petteri Räty
  2010-03-12 21:27 ` Zac Medico
  0 siblings, 1 reply; 10+ messages in thread
From: Petteri Räty @ 2010-03-12 19:39 UTC (permalink / raw
  To: gentoo-dev


[-- Attachment #1.1: Type: text/plain, Size: 589 bytes --]

In eclasses there's often use for outputting QA warnings for ebuild
authors (at least in java and python could immediately make use of
this). Currently Portage has eqawarn available but it's considered
internal. Hopefully eqawarn finds it's way to the next EAPI but in the
mean while do we want:

1) Do a wrapper like attached to eutils.eclass
2) Use whatever e* function that seems most appropriate (for example
einfo when it's common so user LOGging setups don't get too much noise)
3) Have a speedy next EAPI if we can find more stuff like this to bundle

Regards,
Petteri

[-- Attachment #1.2: eqawarn.patch --]
[-- Type: text/plain, Size: 646 bytes --]

Index: eutils.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/eutils.eclass,v
retrieving revision 1.340
diff -u -r1.340 eutils.eclass
--- eutils.eclass	7 Mar 2010 03:00:08 -0000	1.340
+++ eutils.eclass	12 Mar 2010 19:36:28 -0000
@@ -63,6 +63,17 @@
 
 fi
 
+# @FUNCTION: eqawarn
+# @USAGE: [message]
+# @DESCRIPTION:
+# Proxy to einfo for package managers that don't provide eqawarn and use the PM
+# implementation if available.
+if ! declare -F eqawarn >/dev/null ; then
+	eqawarn() {
+		einfo "$@"
+	}
+fi
+
 # @FUNCTION: ecvs_clean
 # @USAGE: [list of dirs]
 # @DESCRIPTION:

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]

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

end of thread, other threads:[~2010-07-10 17:47 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-12 19:39 [gentoo-dev] eqawarn for main tree Petteri Räty
2010-03-12 21:27 ` Zac Medico
2010-03-13 19:16   ` Petteri Räty
2010-07-05 18:14   ` Petteri Räty
2010-07-05 18:19     ` Mark Loeser
2010-07-05 22:42       ` [gentoo-dev] Re: devmanual change notification, was: " Jeroen Roovers
2010-07-06  6:49         ` [gentoo-dev] Re: devmanual change notification Torsten Veller
2010-07-10 11:15       ` [gentoo-dev] eqawarn for main tree Petteri Räty
2010-07-10 17:40         ` "Paweł Hajdan, Jr."
2010-07-10 17:48           ` Petteri Räty

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