summaryrefslogtreecommitdiff
path: root/media-sound/sc2mpd/files/sc2mpd-1.1.7-python.patch
blob: d4103a52245160c9612976c0d1819072fc31e0f0 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
diff -ur work.orig/ohNet/bundle_binaries.py work/ohNet/bundle_binaries.py
--- a/openhome/ohNet/bundle_binaries.py	2020-11-10 00:24:29.640122646 -0600
+++ b/openhome/ohNet/bundle_binaries.py	2020-11-10 00:26:38.441470487 -0600
@@ -121,22 +121,22 @@
     parser.add_option("-m", "--managed-only", default=False, action="store_true", help="Package only the managed assembly.")
     options, args = parser.parse_args()
     if len(args)>0:
-        print "Too many arguments."
+        print("Too many arguments.")
         sys.exit(1)
     if options.system not in ALL_SYSTEMS:
-        print "Please specify --system from one of {0}.".format(", ".join(sorted(ALL_SYSTEMS)))
+        print("Please specify --system from one of {0}.".format(", ".join(sorted(ALL_SYSTEMS))))
         sys.exit(1)
     if options.architecture not in ALL_ARCHITECTURES:
-        print "Please specify --architecture from one of {0}.".format(", ".join(sorted(set(tgt.architecture for tgt in ALL_TARGETS.keys() if tgt.system == options.system))))
+        print("Please specify --architecture from one of {0}.".format(", ".join(sorted(set(tgt.architecture for tgt in ALL_TARGETS.keys() if tgt.system == options.system)))))
         sys.exit(1)
     if options.configuration not in ALL_CONFIGURATIONS:
-        print "Please specify --configuration from one of {0}.".format(", ".join(sorted(ALL_CONFIGURATIONS)))
+        print("Please specify --configuration from one of {0}.".format(", ".join(sorted(ALL_CONFIGURATIONS))))
         sys.exit(1)
     target = BuildTarget(options.system, options.architecture, options.configuration)
     if target not in ALL_TARGETS:
-        print "Unrecognized target combination. Valid combinations are:"
+        print("Unrecognized target combination. Valid combinations are:")
         for valid_target in sorted(ALL_TARGETS.keys()):
-            print "    " + get_target_as_option_string(valid_target)
+            print("    " + get_target_as_option_string(valid_target))
         sys.exit(1)
 
     buildinfo = ALL_TARGETS[target]
diff -ur work.orig/ohNetGenerated/bundle_binaries.py work/ohNetGenerated/bundle_binaries.py
--- a/openhome/ohNetGenerated/bundle_binaries.py	2020-11-10 00:24:29.847123204 -0600
+++ b/openhome/ohNetGenerated/bundle_binaries.py	2020-11-10 00:26:11.793398395 -0600
@@ -96,22 +96,22 @@
     parser.add_option("-m", "--managed-only", default=False, action="store_true", help="Package only the managed assembly.")
     options, args = parser.parse_args()
     if len(args)>0:
-        print "Too many arguments."
+        print("Too many arguments.")
         sys.exit(1)
     if options.system not in ALL_SYSTEMS:
-        print "Please specify --system from one of {0}.".format(", ".join(sorted(ALL_SYSTEMS)))
+        print("Please specify --system from one of {0}.".format(", ".join(sorted(ALL_SYSTEMS))))
         sys.exit(1)
     if options.architecture not in ALL_ARCHITECTURES:
-        print "Please specify --architecture from one of {0}.".format(", ".join(sorted(set(tgt.architecture for tgt in ALL_TARGETS.keys() if tgt.system == options.system))))
+        print("Please specify --architecture from one of {0}.".format(", ".join(sorted(set(tgt.architecture for tgt in ALL_TARGETS.keys() if tgt.system == options.system)))))
         sys.exit(1)
     if options.configuration not in ALL_CONFIGURATIONS:
-        print "Please specify --configuration from one of {0}.".format(", ".join(sorted(ALL_CONFIGURATIONS)))
+        print("Please specify --configuration from one of {0}.".format(", ".join(sorted(ALL_CONFIGURATIONS))))
         sys.exit(1)
     target = BuildTarget(options.system, options.architecture, options.configuration)
     if target not in ALL_TARGETS:
-        print "Unrecognized target combination. Valid combinations are:"
+        print("Unrecognized target combination. Valid combinations are:")
         for valid_target in sorted(ALL_TARGETS.keys()):
-            print "    " + get_target_as_option_string(valid_target)
+            print("    " + get_target_as_option_string(valid_target))
         sys.exit(1)
 
     buildinfo = ALL_TARGETS[target]