1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-24 00:56:15 +01:00

- do_addremove: if a "deleted" file exists in the wc, track it again

This commit is contained in:
Marcus Huewe 2014-10-21 22:31:30 +02:00
parent 26ffaa9de8
commit 27bdf6cbdd

View File

@ -4281,6 +4281,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if state == '?':
# TODO: should ignore typical backup files suffix ~ or .orig
p.addfile(filename)
elif state == 'D' and os.path.isfile(abs_filename):
# if the "deleted" file exists in the wc, track it again
p.addfile(filename)
elif state == '!':
p.delete_file(filename)
print(statfrmt('D', getTransActPath(os.path.join(p.dir, filename))))