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:
parent
26ffaa9de8
commit
27bdf6cbdd
@ -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))))
|
||||
|
Loading…
Reference in New Issue
Block a user