Commit 5d9a80a5 authored by Johannes Löthberg's avatar Johannes Löthberg Committed by Lukas Fleischer
Browse files

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's avatarJohannes Löthberg <>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <>
parent 885a2d2d
......@@ -258,9 +258,6 @@ for commit in walker:
die_commit('invalid package name: %s' % (pkginfo['pkgname']),
if not re.match(r'(?:http|ftp)s?://.*', pkginfo['url']):
die_commit('invalid URL: %s' % (pkginfo['url']),
for field in ('pkgname', 'pkgdesc', 'url'):
if len(pkginfo[field]) > 255:
die_commit('%s field too long: %s' % (field, pkginfo[field]),
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment