summaryrefslogtreecommitdiffstats
path: root/git-interface/git-serve.py
diff options
context:
space:
mode:
Diffstat (limited to 'git-interface/git-serve.py')
-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,