mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
Rename package_exists() to pkgid_from_name()
Describe what this function actually does: Return the ID of a package with a given name and return NULL if such a package doesn't exist. The function name is chosen in a fashion similar to other functions from "pkgfuncs.inc.php" (pkgname_from_id(), pkgnotify_from_sid(), ...). Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
6ae2bc514f
commit
0ac8970b62
3 changed files with 4 additions and 4 deletions
|
@ -90,7 +90,7 @@ function pkgCategories() {
|
|||
|
||||
# check to see if the package name exists
|
||||
#
|
||||
function package_exists($name="") {
|
||||
function pkgid_from_name($name="") {
|
||||
if (!$name) {return NULL;}
|
||||
$dbh = db_connect();
|
||||
$q = "SELECT ID FROM Packages ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue