From de7c9ab787baf7c12e44c17d75b3b6cfe1c2bd97 Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Mon, 28 Sep 2009 19:18:05 -0400 Subject: Remove the plain PKGBUILD upload feature. makepkg --source should be used to upload packages. It provides a bit of error checking and it's good to support only a single format here. Signed-off-by: Loui Chang --- web/html/pkgsubmit.php | 4 ---- 1 file changed, 4 deletions(-) (limited to 'web/html') diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 0f7b4495..db3bdc35 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -36,16 +36,12 @@ if ($_COOKIE["AURSID"]): if (!@chdir($tempdir)) { $error = __("Could not change directory to %s.", $tempdir); } else { - if ($_FILES['pfile']['name'] == "PKGBUILD") { - move_uploaded_file($_FILES['pfile']['tmp_name'], $tempdir . "/PKGBUILD"); - } else { $tar = new Archive_Tar($_FILES['pfile']['tmp_name']); $extract = $tar->extract(); if (!$extract) { $error = __("Unknown file format for uploaded file."); } - } } } } -- cgit v1.2.3-24-g4f1b