Issue tracker moved to https://gitlab.archlinux.org/archlinux/aurweb/-/issues
FS#3128 - (patch) enhance + allow raw PKGBUILD upload
Attached to Project:
AUR web interface
Opened by Aaron Griffin (phrakture) - Monday, 29 August 2005, 16:29 GMT
Last edited by Callan Barrett (wizzomafizzo) - Sunday, 08 June 2008, 18:28 GMT
Opened by Aaron Griffin (phrakture) - Monday, 29 August 2005, 16:29 GMT
Last edited by Callan Barrett (wizzomafizzo) - Sunday, 08 June 2008, 18:28 GMT
|
DetailsYAPPFP (Yet Another Pseudo Patch From Phrakture):
Again, this is untested, it's really just me looking at the code and finding things that can be improved: in pkgsubmit.php, the filename should be checked for "gz" or "bz2" instead of relying on "tar" to fail the extraction... so I made some (untested) changes and added a section allowing a person to directly upload a PKGBUILD file (this would make life so much easier for alot of people, including me): At approx. line 110 in pkgsubmit.php: if (preg_match("/PKGBUILD/",$upload_file) { if (@mkdir($INCOMING_DIR.$pkg_name."/".$pkg_name)) { @exec("/bin/sh -c 'mv ".$upload_file." ".$INCOMING_DIR.$pkg_name."/".$pkg_name."/'"); } else { $error = __("Could not create directory %s.", array($INCOMING_DIR.$pkg_name."/".$pkg_name)); } } else if (preg_match("/.*gz/",$upload_file) { @exec("/bin/sh -c 'tar xzf ".$upload_file."'", $trash); } else if (preg_match("/.*bz2/",$upload_file) { @exec("/bin/sh -c 'tar xjf ".$upload_file."'", $trash); } |
This task depends upon
Closed by Callan Barrett (wizzomafizzo)
Sunday, 08 June 2008, 18:28 GMT
Reason for closing: Implemented
Additional comments about closing: In testing. Woohoo.
Sunday, 08 June 2008, 18:28 GMT
Reason for closing: Implemented
Additional comments about closing: In testing. Woohoo.
Precisely, thus, I'm marking this related to a task about re-tarring stuff.