diff options
author | pjmattal <pjmattal> | 2006-08-01 07:50:48 +0200 |
---|---|---|
committer | pjmattal <pjmattal> | 2006-08-01 07:50:48 +0200 |
commit | ce505210fabef5b3b6f3d10c3a7f73dffa6a5823 (patch) | |
tree | cbf69eb436178fd07f215f2eaca02fc4105daa3a /web/html/pkgsubmit.php | |
parent | c3380f4fd663bf55734ec5b9a445b3cd978f44d7 (diff) | |
download | aur-ce505210fabef5b3b6f3d10c3a7f73dffa6a5823.tar.gz aur-ce505210fabef5b3b6f3d10c3a7f73dffa6a5823.tar.xz |
added dsa's "My Packages" patch
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r-- | web/html/pkgsubmit.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index a3ac9ef7..6bcaf113 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -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); |