[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [websites/quality-kde-org] sanitizer/tools: add a diagnostic message if the insert_entities program
From:       Allen Winter <allen.winter () kdab ! com>
Date:       2012-12-25 22:03:23
Message-ID: 20121225220323.4D97CA6091 () git ! kde ! org
[Download RAW message or body]

Git commit 018e68da39f0bd8f743c30f9e32c783302613e9d by Allen Winter.
Committed on 25/12/2012 at 23:03.
Pushed by winterz into branch 'master'.

add a diagnostic message if the insert_entities program is missing

M  +5    -0    sanitizer/tools/run_insert_entities.py

http://commits.kde.org/websites/quality-kde-org/018e68da39f0bd8f743c30f9e32c783302613e9d


diff --git a/sanitizer/tools/run_insert_entities.py \
b/sanitizer/tools/run_insert_entities.py index 8f5f770..9bd4b19 100755
--- a/sanitizer/tools/run_insert_entities.py
+++ b/sanitizer/tools/run_insert_entities.py
@@ -6,6 +6,11 @@ import tempfile
 
 tmpFile = tempfile.NamedTemporaryFile()
 cmd = "%s/insert_entities -k -e \
/srv/sources/kde-4.x/kdelibs/kdoctools/customization/entities %s" % \
(os.path.dirname(sys.argv[0]), sys.argv[1]) +args=cmd.split(' ')
+if not os.path.exists(args[0]):
+	print >> sys.stderr, "\ninsert_entities program not found at", args[0]
+	sys.exit(1)
+
 p = subprocess.Popen(cmd.split(' '), 0, None, None, tmpFile)
 errors = p.wait()
 if errors == 0:


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic