summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-09-29 01:18:05 +0200
committerLoui Chang <louipc.ist@gmail.com>2009-09-29 01:24:19 +0200
commitde7c9ab787baf7c12e44c17d75b3b6cfe1c2bd97 (patch)
tree71c57735eafeadcea5f97d1db83bb85cdcd8490e /web
parent1eff1d223b1486abe565afee9a86cd106fe1a595 (diff)
downloadaur-de7c9ab787baf7c12e44c17d75b3b6cfe1c2bd97.tar.gz
aur-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')
-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 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.");
}
- }
}
}
}