Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Ulrich Mueller <ulm@g.o>
Subject: Re: RFC: postgresql.eselect
Date: Tue, 29 Mar 2011 11:06:09 +0200
>>>>> On Mon, 28 Mar 2011, Aaron W Swenson wrote:

> This module is to replace the existing one that is shipped with
> <app-admin/eselect-postgresql-1.0.3. It is an entire rewrite.

Some remarks:

- Global scope code is a no-no in eselect modules, especially if it
  calls external programs or accesses external files. Your module
  will be sourced for commands like "eselect modules list" and there
  shouldn't be any global scope code being run on such occasions.

- Don't use eval. It's almost always an indication that you're doing
  something wrong.

- For tests, please use [[ ]] rather than [ ] throughout.

- "output" and "path-manipulation" libraries are always loaded, so you
  need not (and in fact, you shouldn't) inherit them.

- Don't hardcode terminal specific escape sequences (like "\033[1m").
  Use the highlighting functions of the output library instead (which
  in turn use tput).

- Suppressing stdout of commands like "do_action env update" is fine,
  but why suppress stderr?

- Please avoid lines wider than 79 positions.

See also eselect's README and the developer guide:
<http://sources.gentoo.org/cgi-bin/viewvc.cgi/eselect/trunk/README>
<http://www.gentoo.org/proj/en/eselect/dev-guide.xml>

Ulrich


Replies:
Re: RFC: postgresql.eselect
-- Aaron W. Swenson
References:
RFC: postgresql.eselect
-- Aaron W. Swenson
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
RFC: postgresql.eselect
Next by thread:
Re: RFC: postgresql.eselect
Previous by date:
Re: virtual/ffmpeg and media-video/libav
Next by date:
Re: rfc: New global USE flag called "ios", not same as "ipod" ?


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.