1172 else: |
1172 else: |
1173 output, error = self.__client.runcommand(args) |
1173 output, error = self.__client.runcommand(args) |
1174 |
1174 |
1175 if output: |
1175 if output: |
1176 for line in output.splitlines(): |
1176 for line in output.splitlines(): |
1177 if line and line[0] in "MARC!?I": |
1177 if len(line) > 2 and line[0] in "MARC!?I" and line[1] == " ": |
1178 flag, path = line.split(" ", 1) |
1178 flag, path = line.split(" ", 1) |
1179 absname = os.path.join(repodir, os.path.normcase(path)) |
1179 absname = os.path.join(repodir, os.path.normcase(path)) |
1180 if flag not in "?I": |
1180 if flag not in "?I": |
1181 if fname == '.': |
1181 if fname == '.': |
1182 if absname.startswith(dname + os.path.sep): |
1182 if absname.startswith(dname + os.path.sep): |