[aur-dev] [PATCH v2] Fixed Null issue in git-interface/git-serve.py
Fixes a regression introduced in 8c87b1d (git-serve: Add support for setting keywords, 2015-10-22). Signed-off-by: Mark Weiman <mark.weiman@markzz.com> --- git-interface/git-serve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-interface/git-serve.py b/git-interface/git-serve.py index 8bd6aa8..62410e9 100755 --- a/git-interface/git-serve.py +++ b/git-interface/git-serve.py @@ -37,7 +37,7 @@ def pkgbase_from_name(pkgbase): return row[0] if row else None def pkgbase_exists(pkgbase): - return (pkgbase_from_name(pkgbase) > 0) + return pkgbase_from_name(pkgbase) is not None def list_repos(user): db = mysql.connector.connect(host=aur_db_host, user=aur_db_user, -- 2.6.2
On Thu, 26 Nov 2015 at 16:22:47, Mark Weiman wrote:
Fixes a regression introduced in 8c87b1d (git-serve: Add support for setting keywords, 2015-10-22).
Signed-off-by: Mark Weiman <mark.weiman@markzz.com> --- git-interface/git-serve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) [...]
Queued, thanks!
participants (2)
-
Lukas Fleischer
-
Mark Weiman