Commit 39280152 authored by Mark Weiman's avatar Mark Weiman Committed by Lukas Fleischer
Browse files

git-serve: Fix pkgbase_exists()

Fixes a regression introduced in 8c87b1df

 (git-serve: Add support for
setting keywords, 2015-10-22).
Signed-off-by: default avatarMark Weiman <mark.weiman@markzz.com>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent ecb74697
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment