[aur-dev] [PATCH] git-update: Remove regex matching of URL

Johannes Löthberg johannes at kyriasis.com
Fri Jun 19 22:15:36 UTC 2015

The regex check that a URL is either http or ftp doesn't really have any
use, and it forces you leave proper URLs like projects hosted on gopher
still empty.

Signed-off-by: Johannes Löthberg <johannes at kyriasis.com>
 git-interface/git-update.py | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/git-interface/git-update.py b/git-interface/git-update.py
index 34fabcf..f40511e 100755
--- a/git-interface/git-update.py
+++ b/git-interface/git-update.py
@@ -261,9 +261,6 @@ for commit in walker:
             die_commit('invalid package name: %s' % (pkginfo['pkgname']),
-        if 'url' in pkginfo and 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 field in pkginfo and len(pkginfo[field]) > 255:
                 die_commit('%s field too long: %s' % (field, pkginfo[field]),

More information about the aur-dev mailing list