mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
ecb746971c
commit
39280152ea
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue