public inbox for gentoo-soc@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-soc] Required patch for application
@ 2010-04-08  1:57 Alexander Sulfrian
  2010-04-08  1:57 ` [gentoo-soc] [PATCH] added easter egg to emerge Alexander Sulfrian
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Sulfrian @ 2010-04-08  1:57 UTC (permalink / raw
  To: gentoo-soc

Hi,
I am just sending the required patch for the GSoC
application. ('Multiple Repository Support in sys-apps/portage')

This patch does not relay fix anything. It only adds and easter egg:
If you executing emerge with 'moo' as first argument, it would write a
big ASCII moo to stderr and continue as usual ignoring that argument.

Alexander Sulfrian



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

* [gentoo-soc] [PATCH] added easter egg to emerge
  2010-04-08  1:57 [gentoo-soc] Required patch for application Alexander Sulfrian
@ 2010-04-08  1:57 ` Alexander Sulfrian
  2010-04-08 17:04   ` Petteri Räty
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Sulfrian @ 2010-04-08  1:57 UTC (permalink / raw
  To: gentoo-soc; +Cc: Alexander Sulfrian

if emerge is started with "moo" as first command, it outputs a moo ascii art
to stderr and proceed as usual while ignoring the moo argument
---
 bin/emerge |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/bin/emerge b/bin/emerge
index 5d74bfa..51adc7b 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -38,6 +38,15 @@ except ImportError:
 
 if __name__ == "__main__":
 	import sys
+
+	# output a moo if first argument is "moo" and
+	# proceed as usual without that argument
+	if sys.argv[1] == "moo":
+		sys.stderr.write(" _ __ ___   ___   ___\n| '_ ` _ \\ "
+				 "/ _ \\ / _ \\\n| | | | | | (_) | (_) "
+				 "|\n|_| |_| |_|\\___/ \\___/\n\n")
+		sys.argv.pop(1)
+
 	from portage.exception import ParseError, PermissionDenied
 	try:
 		retval = emerge_main()
-- 
1.6.4.4




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

* Re: [gentoo-soc] [PATCH] added easter egg to emerge
  2010-04-08  1:57 ` [gentoo-soc] [PATCH] added easter egg to emerge Alexander Sulfrian
@ 2010-04-08 17:04   ` Petteri Räty
  2010-04-08 17:10     ` AlexanderS
  0 siblings, 1 reply; 4+ messages in thread
From: Petteri Räty @ 2010-04-08 17:04 UTC (permalink / raw
  To: gentoo-soc

[-- Attachment #1: Type: text/plain, Size: 262 bytes --]

On 04/08/2010 04:57 AM, Alexander Sulfrian wrote:
> if emerge is started with "moo" as first command, it outputs a moo ascii art
> to stderr and proceed as usual while ignoring the moo argument
> ---

Would be funny if it wasn't already there :)






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

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

* Re: [gentoo-soc] [PATCH] added easter egg to emerge
  2010-04-08 17:04   ` Petteri Räty
@ 2010-04-08 17:10     ` AlexanderS
  0 siblings, 0 replies; 4+ messages in thread
From: AlexanderS @ 2010-04-08 17:10 UTC (permalink / raw
  To: gentoo-soc

[-- Attachment #1: Type: text/plain, Size: 479 bytes --]

On Thu, 08 Apr 2010 20:04:01 +0300
Petteri Räty <betelgeuse@gentoo.org> wrote:

> On 04/08/2010 04:57 AM, Alexander Sulfrian wrote:
> > if emerge is started with "moo" as first command, it outputs a moo
> > ascii art to stderr and proceed as usual while ignoring the moo
> > argument ---
> 
> Would be funny if it wasn't already there :)

Oh! I see...

I hope that is not a problem. It should only a patch for demonstration
purpose anyway...

Alexander Sulfrian

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

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

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-08  1:57 [gentoo-soc] Required patch for application Alexander Sulfrian
2010-04-08  1:57 ` [gentoo-soc] [PATCH] added easter egg to emerge Alexander Sulfrian
2010-04-08 17:04   ` Petteri Räty
2010-04-08 17:10     ` AlexanderS

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