forked from pool/rpmlint
32 lines
1008 B
Diff
32 lines
1008 B
Diff
|
From 6e26550f7b5583ab15ed5573bf8093d0adbf4cb0 Mon Sep 17 00:00:00 2001
|
||
|
From: Ludwig Nussel <ludwig.nussel@suse.de>
|
||
|
Date: Fri, 10 Apr 2015 16:22:26 +0200
|
||
|
Subject: [PATCH rpmlint] save content to an array
|
||
|
|
||
|
due to the following join the generator would be at the end so iterating
|
||
|
through lines wouldn't work
|
||
|
|
||
|
Upstream ticket:
|
||
|
https://sourceforge.net/p/rpmlint/tickets/44/
|
||
|
|
||
|
---
|
||
|
InitScriptCheck.py | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/InitScriptCheck.py b/InitScriptCheck.py
|
||
|
index 1a58562..9d197e5 100644
|
||
|
--- a/InitScriptCheck.py
|
||
|
+++ b/InitScriptCheck.py
|
||
|
@@ -103,7 +103,7 @@ class InitScriptCheck(AbstractCheck.AbstractCheck):
|
||
|
# check common error in file content
|
||
|
content = None
|
||
|
try:
|
||
|
- content = Pkg.readlines(pkgfile.path)
|
||
|
+ content = [ x for x in Pkg.readlines(pkgfile.path) ]
|
||
|
except Exception:
|
||
|
e = sys.exc_info()[1]
|
||
|
printWarning(pkg, 'read-error', e)
|
||
|
--
|
||
|
2.3.4
|
||
|
|