mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
1eff1d223b
commit
de7c9ab787
1 changed files with 0 additions and 4 deletions
|
@ -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.");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue