Closed Bug 1112436 Opened 11 years ago Closed 11 years ago

makedocs.pl is spewing cronmail on every run, even if successful

Categories

(Bugzilla :: bugzilla.org, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: justdave, Assigned: justdave)

References

Details

Attachments

(2 files)

Every cron run building the website is producing the following output: Already on 'master' Already on '4.2' Already on '5.0' Already on '4.0' Already on '4.4' (regression from bug 1108076)
Attached patch Patch v1Splinter Review
13:17:45 <gerv> Simply replacing system with backticks should do it. And so we have.
Already in production. Checking in bin/build-docs.pl; /www/bugzilla-org/bin/build-docs.pl,v <-- build-docs.pl new revision: 1.15; previous revision: 1.14 done
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
(In reply to Dave Miller [:justdave] (justdave@bugzilla.org) from comment #1) > 13:17:45 <gerv> Simply replacing system with backticks should do it. yes, but that's a hack - you're telling perl do a lot of extra work to capture the output of the command and then throwing it away. a better fix is: > system("git checkout -q " . $branches{$version});
Attached patch Patch v2Splinter Review
Better fix, suggested by glob. Tested and works.
Checking in bin/build-docs.pl; /www/bugzilla-org/bin/build-docs.pl,v <-- build-docs.pl new revision: 1.16; previous revision: 1.15 done And this lets us still get the output in the cron mail if something does go wrong, too.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: