diff options
author | Mark Weiman <mark.weiman@markzz.com> | 2015-11-26 16:22:47 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@archlinux.org> | 2015-11-26 17:22:22 +0100 |
commit | 39280152ea66077d20acc795b72105fd38e362f8 (patch) | |
tree | afbb599b379babb89291d494ee54842d169d8154 | |
parent | ecb746971c47d5748a554b63922c238bf9cb2fd1 (diff) | |
download | aur-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>
-rwxr-xr-x | git-interface/git-serve.py | 2 |
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, |