summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Weiman <mark.weiman@markzz.com>2015-11-26 10:22:47 -0500
committerLukas Fleischer <lfleischer@archlinux.org>2015-11-26 17:22:22 +0100
commit39280152ea66077d20acc795b72105fd38e362f8 (patch)
treeafbb599b379babb89291d494ee54842d169d8154
parentecb746971c47d5748a554b63922c238bf9cb2fd1 (diff)
downloadaurweb-39280152ea66077d20acc795b72105fd38e362f8.tar.xz
git-serve: Fix pkgbase_exists()
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> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rwxr-xr-xgit-interface/git-serve.py2
1 files changed, 1 insertions, 1 deletions
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,