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>
This commit is contained in:
Johannes Löthberg 2015-06-20 12:47:22 +02:00 committed by Lukas Fleischer
parent 885a2d2dca
commit 5d9a80a546

View file

@ -258,9 +258,6 @@ for commit in walker:
die_commit('invalid package name: %s' % (pkginfo['pkgname']), die_commit('invalid package name: %s' % (pkginfo['pkgname']),
commit.id) 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'): for field in ('pkgname', 'pkgdesc', 'url'):
if len(pkginfo[field]) > 255: if len(pkginfo[field]) > 255:
die_commit('%s field too long: %s' % (field, pkginfo[field]), die_commit('%s field too long: %s' % (field, pkginfo[field]),