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>
This commit is contained in:
Loui Chang 2009-09-28 19:18:05 -04:00
parent 1eff1d223b
commit de7c9ab787

View file

@ -36,16 +36,12 @@ if ($_COOKIE["AURSID"]):
if (!@chdir($tempdir)) { if (!@chdir($tempdir)) {
$error = __("Could not change directory to %s.", $tempdir); $error = __("Could not change directory to %s.", $tempdir);
} else { } else {
if ($_FILES['pfile']['name'] == "PKGBUILD") {
move_uploaded_file($_FILES['pfile']['tmp_name'], $tempdir . "/PKGBUILD");
} else {
$tar = new Archive_Tar($_FILES['pfile']['tmp_name']); $tar = new Archive_Tar($_FILES['pfile']['tmp_name']);
$extract = $tar->extract(); $extract = $tar->extract();
if (!$extract) { if (!$extract) {
$error = __("Unknown file format for uploaded file."); $error = __("Unknown file format for uploaded file.");
} }
}
} }
} }
} }