Package: python-cogent / 1.9-14

rdp_classifier.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Author: Andreas Tille <tille@debian.org>
Last-Update: Wed, 14 Sep 2016 21:48:35 +0200
Description: Try to support rdp_classifier (but failed - no idea why)

--- a/cogent/app/rdp_classifier.py
+++ b/cogent/app/rdp_classifier.py
@@ -49,7 +49,7 @@ class RdpClassifier(CommandLineApplicati
     '-training-data'.
     """
     _input_handler = '_input_as_lines'
-    _command = "rdp_classifier-2.2.jar"
+    _command = "/usr/share/java/rdp_classifier.jar"
     _options = {
         # output file name for classification assignment
         '-o': ValuedParameter('-', Name='o', Delimiter=' ', IsPath=True),
--- a/tests/test_app/test_rdp_classifier.py
+++ b/tests/test_app/test_rdp_classifier.py
@@ -30,7 +30,7 @@ class RdpClassifierTests(TestCase):
         if 'RDP_JAR_PATH' in environ:
             self.user_rdp_jar_path = environ['RDP_JAR_PATH']
         else:
-            self.user_rdp_jar_path = 'rdp_classifier-2.2.jar'
+            self.user_rdp_jar_path = '/usr/share/java/rdp_classifier.jar'
         self.output_file = tempfile.NamedTemporaryFile()
 
     def test_default_java_vm_parameters(self):
--- a/tests/test_app/test_rdp_classifier20.py
+++ b/tests/test_app/test_rdp_classifier20.py
@@ -29,7 +29,7 @@ class RdpClassifier20Tests(TestCase):
         if 'RDP_JAR_PATH' in environ:
             self.user_rdp_jar_path = environ['RDP_JAR_PATH']
         else:
-            self.user_rdp_jar_path = 'rdp_classifier-2.0.jar'
+            self.user_rdp_jar_path = '/usr/share/java/rdp_classifier.jar'
 
     def test_default_java_vm_parameters(self):
         """RdpClassifier should store default arguments to Java VM."""