summaryrefslogtreecommitdiffstats
path: root/git-interface
diff options
context:
space:
mode:
authorMark Weiman <mark.weiman@markzz.com>2015-11-26 16:22:47 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2015-11-26 17:22:22 +0100
commit39280152ea66077d20acc795b72105fd38e362f8 (patch)
treeafbb599b379babb89291d494ee54842d169d8154 /git-interface
parentecb746971c47d5748a554b63922c238bf9cb2fd1 (diff)
downloadaur-39280152ea66077d20acc795b72105fd38e362f8.tar.gz
aur-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>
Diffstat (limited to 'git-interface')
-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 8bd6aa8d..62410e98 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,