mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Replace finds with pythonic terms
This commit is contained in:
parent
8f3a2d4355
commit
efc8317272
3 changed files with 8 additions and 10 deletions
|
|
@ -101,7 +101,7 @@ def main():
|
|||
cwd=tmp_dir, stdout=subprocess.PIPE)
|
||||
out = p.communicate()[0]
|
||||
lines = out.splitlines()
|
||||
if len(lines) != 1 or lines[0].find('META-INF') == -1:
|
||||
if len(lines) != 1 or 'META-INF' not in lines[0]:
|
||||
raise Exception("Unexpected diff output - " + out)
|
||||
|
||||
print "...successfully verified"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue