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)
Bugzilla
bugzilla.org
Tracking
()
RESOLVED
FIXED
People
(Reporter: justdave, Assigned: justdave)
References
Details
Attachments
(2 files)
|
727 bytes,
patch
|
Details | Diff | Splinter Review | |
|
730 bytes,
patch
|
Details | Diff | Splinter Review |
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)
| Assignee | ||
Comment 1•11 years ago
|
||
13:17:45 <gerv> Simply replacing system with backticks should do it.
And so we have.
| Assignee | ||
Comment 2•11 years ago
|
||
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});
| Assignee | ||
Comment 4•11 years ago
|
||
Better fix, suggested by glob. Tested and works.
| Assignee | ||
Comment 5•11 years ago
|
||
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.
Description
•