mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix parse errors on pkgsubmit
This commit is contained in:
parent
90473a79d3
commit
0ef4f2308b
1 changed files with 4 additions and 4 deletions
|
@ -43,11 +43,11 @@ if ($_COOKIE["AURSID"]) {
|
||||||
# the uploaded package file.
|
# the uploaded package file.
|
||||||
#
|
#
|
||||||
|
|
||||||
$upload_file = $UPLOAD_DIR . $pkg_name
|
$upload_file = $UPLOAD_DIR . $pkg_name;
|
||||||
if (move_uploaded_file($_FILES["pfile"]["tmp_name"], $upload_file)) {
|
if (move_uploaded_file($_FILES["pfile"]["tmp_name"], $upload_file)) {
|
||||||
# ok, we can proceed
|
# ok, we can proceed
|
||||||
#
|
#
|
||||||
if (file_exists($INCOMING_DIR . $pkg_name) {
|
if (file_exists($INCOMING_DIR . $pkg_name)) {
|
||||||
# blow away the existing file/dir and contents
|
# blow away the existing file/dir and contents
|
||||||
#
|
#
|
||||||
rm_rf($INCOMING_DIR . $pkg_name);
|
rm_rf($INCOMING_DIR . $pkg_name);
|
||||||
|
@ -73,11 +73,11 @@ if ($_COOKIE["AURSID"]) {
|
||||||
} else {
|
} else {
|
||||||
# try .gz first
|
# try .gz first
|
||||||
#
|
#
|
||||||
exec("/bin/sh -c 'tar xzf ".$upload_file."'",, $retval);
|
exec("/bin/sh -c 'tar xzf ".$upload_file."'", $retval);
|
||||||
if (!$retval) {
|
if (!$retval) {
|
||||||
# now try .bz2 format
|
# now try .bz2 format
|
||||||
#
|
#
|
||||||
exec("/bin/sh -c 'tar xjf ".$upload_file."'",, $retval);
|
exec("/bin/sh -c 'tar xjf ".$upload_file."'", $retval);
|
||||||
}
|
}
|
||||||
if (!$retval) {
|
if (!$retval) {
|
||||||
$error = __("Unknown file format for uploaded file.");
|
$error = __("Unknown file format for uploaded file.");
|
||||||
|
|
Loading…
Add table
Reference in a new issue