This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to branch quake
in repository game-data-packager.

commit f11f8973f3ade0ffc253c82a58ad6f012ea9105e
Author: Simon McVittie <s...@debian.org>
Date:   Mon Jan 26 10:55:59 2015 +0000

    quake-server, quake2-server: if no data, exit 72 like quake3-server does
---
 debian/changelog | 1 +
 quake.in         | 3 ++-
 quake2.in        | 3 ++-
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f8a0460..e0fc8dc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -20,6 +20,7 @@ quake (10) UNRELEASED; urgency=medium
   * Simplify advice on obtaining game data, and point to
     game-data-packager's new declarative data files for checksums and
     exact sizes (Closes: #762823)
+  * quake-server, quake2-server: if no data, exit 72 like quake3-server does
 
  -- Simon McVittie <s...@debian.org>  Thu, 22 Jan 2015 23:48:36 +0000
 
diff --git a/quake.in b/quake.in
index fb435ab..066ad59 100644
--- a/quake.in
+++ b/quake.in
@@ -39,7 +39,8 @@ main() {
 
     if ! [ -f "${data_location}/id1/pak0.pak" ]; then
         if test "${role}" = server; then
-            echo "$no_data_msg"
+            echo "$no_data_msg" >&2
+            exit 72    # EX_OSFILE
         else
             exec "$data_location"/need-data.sh "$no_data_title" "$no_data_msg"
         fi
diff --git a/quake2.in b/quake2.in
index 082a1e5..a4d5ef1 100644
--- a/quake2.in
+++ b/quake2.in
@@ -49,7 +49,8 @@ main() {
 
     if ! [ -f "${use_data_location}/baseq2/pak0.pak" ]; then
         if test "${role}" = server; then
-            echo "$no_data_msg"
+            echo "$no_data_msg" >&2
+            exit 72    # EX_OSFILE
         else
             exec "$data_location"/need-data.sh "$no_data_title" "$no_data_msg"
         fi

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/game-data-packager.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to