From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E7F2D1381F3 for ; Sat, 27 Apr 2013 15:08:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80175E0BF1; Sat, 27 Apr 2013 15:08:11 +0000 (UTC) Received: from a1www.kph.uni-mainz.de (a1iwww1.kph.uni-mainz.de [134.93.134.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 45901E0BBC for ; Sat, 27 Apr 2013 15:08:09 +0000 (UTC) Received: from a1i15.kph.uni-mainz.de (a1i15.kph.uni-mainz.de [134.93.134.92]) by a1www.kph.uni-mainz.de (8.14.4/8.13.4) with ESMTP id r3RF83xi013698; Sat, 27 Apr 2013 17:08:03 +0200 Received: from a1i15.kph.uni-mainz.de (localhost [127.0.0.1]) by a1i15.kph.uni-mainz.de (8.14.6/8.14.2) with ESMTP id r3RF83KD018343; Sat, 27 Apr 2013 17:08:03 +0200 Received: (from ulm@localhost) by a1i15.kph.uni-mainz.de (8.14.6/8.14.6/Submit) id r3RF828q018341; Sat, 27 Apr 2013 17:08:02 +0200 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit Message-ID: <20859.59858.783333.548497@a1i15.kph.uni-mainz.de> Date: Sat, 27 Apr 2013 17:08:02 +0200 To: =?iso-8859-2?Q?Micha=B3_G=F3rny?= Cc: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [PATCH bash-completion-r1] Introduce get_bashcompdir() to obtain bash-completion dir. In-Reply-To: <20130427134902.1ba58a4d@gentoo.org> References: <1367041504-988-1-git-send-email-mgorny@gentoo.org> <20859.31433.230130.336473@a1i15.kph.uni-mainz.de> <20130427134902.1ba58a4d@gentoo.org> X-Mailer: VM 8.2.0b under 24.3.1 (x86_64-pc-linux-gnu) From: Ulrich Mueller X-Archives-Salt: 629139c6-2acf-4dc0-8741-e1b6d7f0ec0e X-Archives-Hash: ff6b9b68abc2425ad0fd24847df8e828 >>>>> On Sat, 27 Apr 2013, Michał Górny wrote: >> > It's better to have a function to obtain that directory rather than for >> > ebuilds to hardcode it. >> >> Why? > For better consistency, I'd say. Especially if we decide to fix Gentoo > and start using the standard path, we'd need only to modify the eclass > rather than all involved packages. But why should it be a function? Its return value is constant, so a variable defined in the eclass seems more natural. Ulrich