You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/media-sound/sc2mpd/files/sc2mpd-1.1.7-python.patch

65 lines
4.1 KiB

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]