[med-svn] [aeskulap] 01/01: Add patch to enable loading DICOMDIR from command line
Gert Wollny
gert-guest at moszumanska.debian.org
Fri Dec 9 09:49:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
gert-guest pushed a commit to branch master
in repository aeskulap.
commit cc8392c879aeaa16c1c7820884df37d4e8115abd
Author: Gert Wollny <gw.fossdev at gmail.com>
Date: Fri Dec 9 09:09:35 2016 +0000
Add patch to enable loading DICOMDIR from command line
---
debian/changelog | 4 +++-
debian/patches/add_dicomdir_option.patch | 25 +++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 29 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 1788200..385020f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,7 +7,9 @@ aeskulap (0.2.2b1+git20161206-1) UNRELEASED; urgency=medium
* Drop most patches since applied upstream
* d/p: Add patch to re-introduce pc/Makefile.in.in
* d/p: Add patch to silence compiler warning for "typedef enum"
- * d/p: update patch for rpath removal
+ * d/p: Update patch for rpath removal
+ * d/p: Add patch to recognise a '-d/--dicomdir' option to enable
+ loading a DICOMDIR from the command line Closes: #813638
-- Gert Wollny <gw.fossdev at gmail.com> Tue, 06 Dec 2016 20:42:56 +0000
diff --git a/debian/patches/add_dicomdir_option.patch b/debian/patches/add_dicomdir_option.patch
new file mode 100644
index 0000000..40af5d9
--- /dev/null
+++ b/debian/patches/add_dicomdir_option.patch
@@ -0,0 +1,25 @@
+Description: Load a DICOMDIR if option -d is given
+Author: Gert Wollny <gw.fossdev at gmail.com>
+
+--- a/src/main.cpp
++++ b/src/main.cpp
+@@ -105,6 +105,19 @@
+ for(int c=1; c<argc; c++) {
+ if(argv[c][0] != '-') {
+ list.push_back(argv[c]);
++ }else{
++ if (!strcmp(argv[c], "--dicomdir") ||
++ !strcmp(argv[c], "-d")) {
++ if (c + 1 < argc) {
++ mainWindow->open_dicomdir(argv[c+1]);
++ ++c;
++ }else{
++ std::cerr << "option '" << argv[c]
++ << "' requires a parameters" << std::endl;
++ }
++ }else{
++ std::cerr << "unknown option '" << argv[c] << "'given, ignoring" << std::endl;
++ }
+ }
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
index bb9d35b..de06625 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,5 @@
remove_rpath.patch
+add_dicomdir_option.patch
po_makefile.patch
desktop-file.patch
remove-ignore-typedef.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/aeskulap.git
More information about the debian-med-commit
mailing list