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

@ -35,9 +35,6 @@ if ($_COOKIE["AURSID"]):
} else {
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();
@ -48,7 +45,6 @@ if ($_COOKIE["AURSID"]):
}
}
}
}
# Find the PKGBUILD
if (!$error) {