AUR web interface

Tasklist

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
Task Type Feature Request
Category Backend
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version 1.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

YAPPFP (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.
Comment by Simo Leone (neotuli) - Saturday, 22 October 2005, 15:40 GMT
If you just upload a PKGBUILD, then what does the "Tarball" link do?

Precisely, thus, I'm marking this related to a task about re-tarring stuff.

Loading...