My most recent set of patches tried to maintain backwards compatibility with previous versions of apport but that actually won't work. The following change needs to be made.
363 # Simply log an entry in the host error log and exit 0.
364 if len(sys.argv) in (5, 6):
365 host_pid = int(sys.argv[-1])
366
Should be:
363 # Simply log an entry in the host error log and exit 0.
364 if len(sys.argv) == 6:
365 host_pid = int(sys.argv[5])
366
My most recent set of patches tried to maintain backwards compatibility with previous versions of apport but that actually won't work. The following change needs to be made.
363 # Simply log an entry in the host error log and exit 0.
364 if len(sys.argv) in (5, 6):
365 host_pid = int(sys.argv[-1])
366
Should be:
363 # Simply log an entry in the host error log and exit 0.
364 if len(sys.argv) == 6:
365 host_pid = int(sys.argv[5])
366