summaryrefslogtreecommitdiffstats
path: root/web/html/pkgsubmit.php
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-09-28 19:18:05 -0400
committerLoui Chang <louipc.ist@gmail.com>2009-09-28 19:24:19 -0400
commitde7c9ab787baf7c12e44c17d75b3b6cfe1c2bd97 (patch)
tree71c57735eafeadcea5f97d1db83bb85cdcd8490e /web/html/pkgsubmit.php
parent1eff1d223b1486abe565afee9a86cd106fe1a595 (diff)
downloadaurweb-de7c9ab787baf7c12e44c17d75b3b6cfe1c2bd97.tar.xz
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.php4
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.");
}
- }
}
}
}