--- DistUpgrade/utils.py 2014-12-06 14:23:31.375069092 +0200 +++ DistUpgrade/utils.py 2014-12-06 14:23:52.049592064 +0200 @@ -118,11 +118,11 @@ with open(stat_file) as stat_f: stat = stat_f.read() # extract command (inside ()) - command = stat.partition("(")[2].partition(")")[0] + command = stat.partition("(")[2].rpartition(")")[0] if command == processname: return True # get parent (second to the right of command) and check that next - pid = int(stat.partition(")")[2].split()[1]) + pid = int(stat.rpartition(")")[2].split()[1]) return False