added dsa's "My Packages" patch

This commit is contained in:
pjmattal 2006-08-01 05:50:48 +00:00
parent c3380f4fd6
commit ce505210fa
5 changed files with 21 additions and 0 deletions

View file

@ -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);