[publican-list] [Bug 688447] New: stdout, stderr and exit codes
bugzilla at redhat.com
bugzilla at redhat.com
Thu Mar 17 04:47:33 UTC 2011
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
Summary: stdout, stderr and exit codes
https://bugzilla.redhat.com/show_bug.cgi?id=688447
Summary: stdout, stderr and exit codes
Product: Publican
Version: 2.5
Platform: Unspecified
OS/Version: Unspecified
Status: NEW
Severity: unspecified
Priority: unspecified
Component: publican
AssignedTo: jfearn at redhat.com
ReportedBy: tdabasin at redhat.com
QAContact: rlandman at redhat.com
CC: mmcallis at redhat.com, publican-list at redhat.com
Classification: Other
I run publican package -brew -lang en-US 2> stderr.txt (redirecting stderr to
file) here's the file contents:
|Running clean process to ensure stale content is not bundled in packages.
|Clean: Removing tmp and publish directories.
|Setting up en-US
| Processing file tmp/en-US/xml_tmp/Weeks/Week11.xml ->
tmp/en-|US/xml/Weeks/Week11.xml
| Using XML::LibXSLT on /usr/share/publican/xsl/web-spec.xsl
|Kerberos authentication failed: No credentials cache found (-1765328189)
I checked error ERRORLEVEL and it says 0:
|[tomas]$ echo $?
|0
I then update my kerberos credentials and run command again stderr output:
|Running clean process to ensure stale content is not bundled in packages.
|Clean: Removing tmp and publish directories.
|Setting up en-US
| Processing file tmp/en-US/xml_tmp/Weeks/Week11.xml ->
tmp/en-|US/xml/Weeks/Week11.xml
| Using XML::LibXSLT on /usr/share/publican/xsl/web-spec.xsl
errorlevel again is 0.
How should I check if publican build failed? It would probably make sense
sending program output to stderr ONLY when there's an error during
execution(Kerberos authentication failed: No credentials cache found
(-1765328189)), not the regular program output:
|Running clean process to ensure stale content is not bundled in packages.
|Clean: Removing tmp and publish directories.
|Setting up en-US
| Processing file tmp/en-US/xml_tmp/Weeks/Week11.xml ->
tmp/en-|US/xml/Weeks/Week11.xml
| Using XML::LibXSLT on /usr/share/publican/xsl/web-spec.xsl
Also setting errorlevel to something other than 0 when publican build fails
would be good too
Thanks,
Tomas
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the publican-list
mailing list