summaryrefslogtreecommitdiffstats
path: root/git-interface/git-update.py
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-06-20 12:47:22 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-06-20 14:28:23 +0200
commit5d9a80a546265d7c746b236a186a142bc3ecc35e (patch)
tree3f56685e89f6b9f4345a4c1ed4aec68d3addb416 /git-interface/git-update.py
parent885a2d2dcad7f0651350ea55af3fca85b8ea33d3 (diff)
downloadaurweb-5d9a80a546265d7c746b236a186a142bc3ecc35e.tar.xz
git-update: Remove regex matching of URL
The regex check that a URL is either http or ftp doesn't really have any use, and it forces you to leave proper URLs for eg projects hosted on gopher empty. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'git-interface/git-update.py')
-rwxr-xr-xgit-interface/git-update.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/git-interface/git-update.py b/git-interface/git-update.py
index ebed491..6610019 100755
--- a/git-interface/git-update.py
+++ b/git-interface/git-update.py
@@ -258,9 +258,6 @@ for commit in walker:
die_commit('invalid package name: %s' % (pkginfo['pkgname']),
commit.id)
- if not re.match(r'(?:http|ftp)s?://.*', pkginfo['url']):
- die_commit('invalid URL: %s' % (pkginfo['url']), commit.id)
-
for field in ('pkgname', 'pkgdesc', 'url'):
if len(pkginfo[field]) > 255:
die_commit('%s field too long: %s' % (field, pkginfo[field]),