mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Remove unused function pkg_details_by_name()
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
2cff0d3455
commit
f8343e5a68
1 changed files with 0 additions and 24 deletions
|
@ -728,30 +728,6 @@ function sanitize_ids($ids) {
|
||||||
return $new_ids;
|
return $new_ids;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get all package information in the database for a specific package
|
|
||||||
*
|
|
||||||
* @param string $pkgname The name of the package to get details for
|
|
||||||
*
|
|
||||||
* @return array All package details for a specific package
|
|
||||||
*/
|
|
||||||
function pkg_details_by_name($pkgname) {
|
|
||||||
$dbh = DB::connect();
|
|
||||||
$q = "SELECT Packages.*, PackageBases.Name AS BaseName, ";
|
|
||||||
$q.= "PackageBases.CategoryID, PackageBases.NumVotes, ";
|
|
||||||
$q.= "PackageBases.OutOfDateTS, PackageBases.SubmittedTS, ";
|
|
||||||
$q.= "PackageBases.ModifiedTS, PackageBases.SubmitterUID, ";
|
|
||||||
$q.= "PackageBases.MaintainerUID FROM Packages ";
|
|
||||||
$q.= "INNER JOIN PackageBases ";
|
|
||||||
$q.= "ON PackageBases.ID = Packages.PackageBaseID WHERE ";
|
|
||||||
$q.= "Packages.Name = " . $dbh->quote($pkgname);
|
|
||||||
$result = $dbh->query($q);
|
|
||||||
if ($result) {
|
|
||||||
$row = $result->fetch(PDO::FETCH_ASSOC);
|
|
||||||
}
|
|
||||||
return $row;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add package information to the database for a specific package
|
* Add package information to the database for a specific package
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue