often when debugging problems with release nodes [1] it's handy to run the packaging script manually to see what's going on, but restrict it to a specific project. i usually just edit the script to add another WHERE clause to the query, but this is error-prone and labor-intensive. attached patch just makes it so that if you happen to specify a 2nd arg on the command-line, it treats that as the nid for the project you're interested in, and packaing (or verifying) only happens for that project.

[1] see for example:
http://drupal.org/node/111631
http://drupal.org/node/109143
or more broadly:
http://drupal.org/node/109181

Comments

dww’s picture

StatusFileSize
new5.29 KB

syntax error in previous patch.

dww’s picture

StatusFileSize
new5.8 KB

after testing on s.d.o, fixed minor bug, and improved watchdog. i think this is RTBC. anyone care to take a look?

merlinofchaos’s picture

Status: Needs review » Reviewed & tested by the community

Codewise it looks good.

Question: Would this enable project administrators to maybe get a button to run the packaging script for just one project? (This might be nice for getting -dev releases built more quickly after one is put in).

Hm. As I think on it that's not a good solution.

Maybe dev releases should be built more often *if* they don't have a file; so your initial -dev release will show up right away. Hm. that's for a completely other patch and I'm just babbling here.

dww’s picture

Status: Reviewed & tested by the community » Fixed

thanks for the review, merlin.

yeah, for all sorts of permission/security issues, the packaging scripts run as a completely different user than the webserver, which is why it's triggered by UNIX cron, not drupal. ;) so yeah, the initial packaging for a development snapshot would require a different kind of change, not a button for project maintainers to click. for example, the 'tag' operation could be modified to also check for dev snapshots that have no file or something... but yeah, that's certainly for another issue.

committed to HEAD and installed on d.o. i'll email the infra list about this.

Anonymous’s picture

Status: Fixed » Closed (fixed)