summaryrefslogtreecommitdiffstats
path: root/web/html/packages.php
diff options
context:
space:
mode:
authorCallan Barrett <wizzomafizzo@gmail.com>2008-06-11 20:28:13 +0200
committerCallan Barrett <wizzomafizzo@gmail.com>2008-06-11 20:30:17 +0200
commit604156950c42af1f0b592c6dc6758d44670db4da (patch)
tree3acb31f558494ee95f99c51f91683cfdbc072e34 /web/html/packages.php
parent4d29be001bd78bc5a1b3edd393e9ce2084d0d882 (diff)
downloadaur-604156950c42af1f0b592c6dc6758d44670db4da.tar.gz
aur-604156950c42af1f0b592c6dc6758d44670db4da.tar.xz
Make use of PEAR packages in pkgsubmit.php
Uses File_Find and Archive_Tar in pkgsubmit.php Removes references to PackageContents Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Diffstat (limited to 'web/html/packages.php')
-rw-r--r--web/html/packages.php16
1 files changed, 6 insertions, 10 deletions
diff --git a/web/html/packages.php b/web/html/packages.php
index 80ddf209..afee32e8 100644
--- a/web/html/packages.php
+++ b/web/html/packages.php
@@ -228,31 +228,27 @@ if ($_POST['action'] == "do_Flag" || isset($_POST['do_Flag'])) {
# These are the packages that are safe to delete
#
foreach ($ids_to_delete as $id) {
- # 1) delete from PackageVotes
+ # delete from PackageVotes
$q = "DELETE FROM PackageVotes WHERE PackageID = " . $id;
$result = db_query($q, $dbh);
- # 2) delete from PackageContents
- $q = "DELETE FROM PackageContents WHERE PackageID = " . $id;
- $result = db_query($q, $dbh);
-
- # 3) delete from PackageDepends
+ # delete from PackageDepends
$q = "DELETE FROM PackageDepends WHERE PackageID = " . $id;
$result = db_query($q, $dbh);
- # 4) delete from PackageSources
+ # delete from PackageSources
$q = "DELETE FROM PackageSources WHERE PackageID = " . $id;
$result = db_query($q, $dbh);
- # 5) delete from PackageComments
+ # delete from PackageComments
$q = "DELETE FROM PackageComments WHERE PackageID = " . $id;
$result = db_query($q, $dbh);
- # 6) delete from Packages
+ # delete from Packages
$q = "DELETE FROM Packages WHERE ID = " . $id;
$result = db_query($q, $dbh);
- # 7) delete from CommentNotify
+ # delete from CommentNotify
$q = "DELETE FROM CommentNotify WHERE PkgID = " . $id;
$result = db_query($q, $dbh);