diff options
author | Loui Chang <louipc.ist@gmail.com> | 2009-09-28 19:18:05 -0400 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2009-09-28 19:24:19 -0400 |
commit | de7c9ab787baf7c12e44c17d75b3b6cfe1c2bd97 (patch) | |
tree | 71c57735eafeadcea5f97d1db83bb85cdcd8490e /web/html/pkgsubmit.php | |
parent | 1eff1d223b1486abe565afee9a86cd106fe1a595 (diff) |
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 <louipc.ist@gmail.com>
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r-- | web/html/pkgsubmit.php | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 0f7b449..db3bdc3 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."); } - } } } } |