Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [PATCH 1/2] python-utils-r1.eclass: python_fix_shebang, skip empty files
Date: Fri, 27 Nov 2015 13:15:30
Message-Id: 20151127141508.65c95988.mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/2] python-utils-r1.eclass: python_fix_shebang, skip empty files by "Michał Górny"
1 On Thu, 26 Nov 2015 23:30:08 +0100
2 Michał Górny <mgorny@g.o> wrote:
3
4 > Skip empty files when traversing directories in python_fix_shebangs.
5 > This prevents read from failing on them, and avoids opening them
6 > unnecessarily.
7 > ---
8 > eclass/python-utils-r1.eclass | 9 ++++++---
9 > 1 file changed, 6 insertions(+), 3 deletions(-)
10
11 I'm withdrawing this one. 'read' is equally unhappy with empty files
12 and files having no newline character (i.e. very ugly files), so no
13 ||die for it.
14
15 --
16 Best regards,
17 Michał Górny
18 <http://dev.gentoo.org/~mgorny/>