Gentoo Archives: gentoo-portage-dev

From: Ed Catmur <ed@×××××××××.uk>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Grep allowed in portage bash files?
Date: Wed, 18 Apr 2007 01:21:47
Message-Id: 1176859200.28230.2.camel@capella.catmur.co.uk
In Reply to: [gentoo-portage-dev] Grep allowed in portage bash files? by Naga
1 On Tue, 2007-04-17 at 17:37 +0200, Naga wrote:
2 > is it allowed with a grep call in portage (ebuild.sh)?
3 > The reason I'm asking is because I was thinking of a way of handling non
4 > standard file suffixes to standard archive formats (as in bug: 174910 [1]).
5 >
6 > The way I was thinking of was to run "file" on the file and compare to the
7 > suffix (if that is nessesary) and then chose a program based on the result.
8 >
9 > [1] http://bugs.gentoo.org/show_bug.cgi?id=174910
10
11 Unpack is outside global scope, so that's allowed; in any case, you're
12 already forking for file. Using grep is pointless, though; use case.
13
14 Ed
15
16 --
17 gentoo-portage-dev@g.o mailing list