chiark / gitweb /
Allow slashes in tags
authorDaniel Martí <mvdan@mvdan.cc>
Sat, 12 Sep 2015 06:17:14 +0000 (23:17 -0700)
committerDaniel Martí <mvdan@mvdan.cc>
Sat, 12 Sep 2015 06:17:36 +0000 (23:17 -0700)
The wikipedia app uses them, for example.

fdroidserver/common.py

index 795de66dad09f2b491af639893819209f6771c27..3feaf07a54599e5d4eca9bf74cda1ec94a9470f6 100644 (file)
@@ -531,7 +531,7 @@ class vcs:
             raise VCSException('gettags not supported for this vcs type')
         rtags = []
         for tag in self._gettags():
-            if re.match('[-A-Za-z0-9_. ]+$', tag):
+            if re.match('[-A-Za-z0-9_. /]+$', tag):
                 rtags.append(tag)
         return rtags