mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Corrected a problem when submit a package, more details in file pkgsubmit.php
This commit is contained in:
parent
89d6607684
commit
06e4af2dbc
1 changed files with 7 additions and 1 deletions
|
@ -86,7 +86,13 @@ if ($_COOKIE["AURSID"]) {
|
||||||
# the uploaded package file.
|
# the uploaded package file.
|
||||||
#
|
#
|
||||||
|
|
||||||
$upload_file = $UPLOAD_DIR . $pkg_name;
|
# Added the .tgz because the old line just moved the tmp file to
|
||||||
|
# pkgname, but there is a problem below when it try to create the
|
||||||
|
# directory with the same name - pkgname. In linux/unix, if we
|
||||||
|
# touch a file like "touch foo" and then try to create a foo dir
|
||||||
|
# like "mkdir foo" it will give us a error. That was what happening in
|
||||||
|
# newer installations of AUR.
|
||||||
|
$upload_file = $UPLOAD_DIR . $pkg_name . ".tgz";
|
||||||
|
|
||||||
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
|
||||||
|
|
Loading…
Add table
Reference in a new issue