chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
223db15
)
lint: move regex closer to usage
author
Daniel Martí
<mvdan@mvdan.cc>
Sat, 12 Sep 2015 05:07:51 +0000
(22:07 -0700)
committer
Daniel Martí
<mvdan@mvdan.cc>
Sat, 12 Sep 2015 05:07:51 +0000
(22:07 -0700)
fdroidserver/lint.py
patch
|
blob
|
history
diff --git
a/fdroidserver/lint.py
b/fdroidserver/lint.py
index 3524c728f61ae41128a1c6cced77895b7c7cb0a0..67323973dea44a4b297c47d6dc75049f6eab2c5c 100644
(file)
--- a/
fdroidserver/lint.py
+++ b/
fdroidserver/lint.py
@@
-121,8
+121,6
@@
def check_regexes(app):
if m.match(l):
yield "%s at line '%s': %s" % (f, l, r)
-desc_url = re.compile("[^[]\[([^ ]+)( |\]|$)")
-
def get_lastbuild(builds):
lowest_vercode = -1
@@
-255,6
+253,9
@@
def check_duplicates(app):
seenlines.add(l)
+desc_url = re.compile("[^[]\[([^ ]+)( |\]|$)")
+
+
def check_mediawiki_links(app):
for l in app['Description']:
for um in desc_url.finditer(l):