mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 09:43:03 +00:00
added dsa's "My Packages" patch
This commit is contained in:
parent
c3380f4fd6
commit
ce505210fa
5 changed files with 21 additions and 0 deletions
|
@ -421,6 +421,12 @@ if ($_COOKIE["AURSID"]) {
|
|||
while (list($k, $v) = each($depends)) {
|
||||
$q = "INSERT INTO PackageDepends (PackageID, DepPkgID) VALUES (";
|
||||
$deppkgname = preg_replace("/[<>]?=.*/", "", $v);
|
||||
|
||||
# Solve the problem with comments and deps
|
||||
# added by: dsa <dsandrade@gmail.com>
|
||||
if ($deppkgname == "#")
|
||||
break;
|
||||
|
||||
$deppkgid = create_dummy($deppkgname, $_COOKIE['AURSID']);
|
||||
$q .= $pdata["ID"].", ".$deppkgid.")";
|
||||
db_query($q, $dbh);
|
||||
|
@ -492,6 +498,12 @@ if ($_COOKIE["AURSID"]) {
|
|||
while (list($k, $v) = each($depends)) {
|
||||
$q = "INSERT INTO PackageDepends (PackageID, DepPkgID) VALUES (";
|
||||
$deppkgname = preg_replace("/[<>]?=.*/", "", $v);
|
||||
|
||||
# Solve the problem with comments and deps
|
||||
# added by: dsa <dsandrade@gmail.com>
|
||||
if ($deppkgname == "#")
|
||||
break;
|
||||
|
||||
$deppkgid = create_dummy($deppkgname, $_COOKIE['AURSID']);
|
||||
$q .= $packageID.", ".$deppkgid.")";
|
||||
db_query($q, $dbh);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue