mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
885a2d2dca
commit
5d9a80a546
1 changed files with 0 additions and 3 deletions
|
@ -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]),
|
||||
|
|
Loading…
Add table
Reference in a new issue