mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-11 16:36:14 +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 == '?':
|
if state == '?':
|
||||||
# TODO: should ignore typical backup files suffix ~ or .orig
|
# TODO: should ignore typical backup files suffix ~ or .orig
|
||||||
p.addfile(filename)
|
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 == '!':
|
elif state == '!':
|
||||||
p.delete_file(filename)
|
p.delete_file(filename)
|
||||||
print(statfrmt('D', getTransActPath(os.path.join(p.dir, filename))))
|
print(statfrmt('D', getTransActPath(os.path.join(p.dir, filename))))
|
||||||
|
Loading…
Reference in New Issue
Block a user