diff options
author | dsa <dsa> | 2006-12-14 01:44:17 +0100 |
---|---|---|
committer | dsa <dsa> | 2006-12-14 01:44:17 +0100 |
commit | 06e4af2dbc2d69d90be7a60c0b6944629740aaad (patch) | |
tree | 00bcef58f18e409fe5aa3ab3a8367479ee224f63 /web/html/pkgsubmit.php | |
parent | 89d6607684a1d28575767a12419b6f652794fc30 (diff) | |
download | aur-06e4af2dbc2d69d90be7a60c0b6944629740aaad.tar.gz aur-06e4af2dbc2d69d90be7a60c0b6944629740aaad.tar.xz |
Corrected a problem when submit a package, more details in file pkgsubmit.php
Diffstat (limited to 'web/html/pkgsubmit.php')
-rw-r--r-- | web/html/pkgsubmit.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php index 9d54271e..5b2efd70 100644 --- a/web/html/pkgsubmit.php +++ b/web/html/pkgsubmit.php @@ -86,7 +86,13 @@ if ($_COOKIE["AURSID"]) { # 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)) { # ok, we can proceed |