]> diplodocus.org Git - nmh/blobdiff - tools/showbuildenv
Fix whitespace errors
[nmh] / tools / showbuildenv
index ce21a0e077cbd146e80de81afd5f37da420c4cc9..9db0f3e21fbaefed180ad15604188c744a32a038 100755 (executable)
@@ -9,6 +9,10 @@
 # This script should *only* report basic information about the build
 # environment, and only that necessary to reproduce the build
 # environment.
+#
+# The script's exit status must be zero if all went acceptably well as
+# buildbot checks for this and marks the `environment' stage as failed
+# otherwise.
 
 offset () {
     sed -e '/./s/^/    /' "$@"
@@ -25,7 +29,7 @@ header () {
 # also use that to placate broken logic that use its prescence as a
 # use-RPM test.
 for f in \
-    /etc/os-release /etc/arch-release /etc/debian_version \
+    /etc/os-release /etc/arch-release /etc/centos-release /etc/debian_version \
     /etc/fedora-release /etc/gentoo-release /etc/redhat-release \
     /etc/lsb-release \
     ; do
@@ -59,12 +63,9 @@ case ${os} in
        header Compilers:
        cc -v 2>&1 | offset
 
-       header Installed packages:
+       header Installed packages:
         #### pkg(7) or pkg_info(1) might not always be available.
        (pkg info 2>/dev/null | offset) || true
        (pkg_info 2>/dev/null | offset) || true
        ;;
 esac
-
-# Temporary test.  Does anything care if the exit status is non-zero?
-exit 42