[quake] 05/10: quake-server, quake2-server: if no data, exit 72 like quake3-server does

Simon McVittie smcv at debian.org
Wed Feb 4 11:07:05 UTC 2015


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

smcv pushed a commit to branch master
in repository quake.

commit f11f8973f3ade0ffc253c82a58ad6f012ea9105e
Author: Simon McVittie <smcv at 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 <smcv at 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/quake.git



More information about the Pkg-games-commits mailing list