[med-svn] [inspect] 02/02: Fix usage output; TODO: use argv[0] to get the real command name since we might use the renamed inspect under /usr/bin
Andreas Tille
tille at debian.org
Thu Oct 1 20:44:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository inspect.
commit bcca9d4cbba308aa578a5a6c8a7402aef9a1e3ca
Author: Andreas Tille <tille at debian.org>
Date: Thu Oct 1 22:43:28 2015 +0200
Fix usage output; TODO: use argv[0] to get the real command name since we might use the renamed inspect under /usr/bin
---
debian/patches/fix_usage_output.patch | 27 +++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 28 insertions(+)
diff --git a/debian/patches/fix_usage_output.patch b/debian/patches/fix_usage_output.patch
new file mode 100644
index 0000000..e367fa8
--- /dev/null
+++ b/debian/patches/fix_usage_output.patch
@@ -0,0 +1,27 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Tue, 29 Sep 2015 15:21:50 +0200
+Description: There is no .exe under Linux ...
+
+--- a/PTMAnalysis.py
++++ b/PTMAnalysis.py
+@@ -268,7 +268,7 @@ class WrapperClass:
+ if sys.platform == "win32":
+ InspectExe = "Inspect.exe"
+ else:
+- InspectExe = "./inspect"
++ InspectExe = "inspect"
+ InspectIn = "BigSearch.in"
+ self.InspectOutFile = os.path.join(self.InspectOutDir, "Results.txt")
+ Command = "%s -i %s -o %s"%(InspectExe, InspectIn, self.InspectOutFile)
+--- a/main.c
++++ b/main.c
+@@ -93,7 +93,8 @@ extern StringNode* LastTagCheckNode;
+ void PrintUsageInfo()
+ {
+ printf("\nSample command-line:\n");
+- printf("Inspect.exe -i Foo.in -o Foo.txt -e ErrorsFoo.txt\n");
++ /* FIXME: Use really used command argv[0] here */
++ printf("inspect -i Foo.in -o Foo.txt -e ErrorsFoo.txt\n");
+ printf("Command-line arguments:\n");
+ printf(" -i InputFileName: Path to a config file specifying search parameters.\n");
+ printf(" -o OutputFileName: Output file for match results. If not\n");
diff --git a/debian/patches/series b/debian/patches/series
index 22d69ef..d8f7432 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
hardening.patch
psyco-pypy-warning.patch
+fix_usage_output.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/inspect.git
More information about the debian-med-commit
mailing list