mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-24 03:02:12 +01:00
fix update of working copy when adding file from upstream which is missing locally
This commit is contained in:
parent
4671c647ba
commit
2e8d12af7e
@ -358,7 +358,7 @@ usage: up
|
||||
for filename in p.filenamelist:
|
||||
|
||||
state = p.status(filename)
|
||||
if p.findfilebyname(filename).md5 == oldp.findfilebyname(filename).md5:
|
||||
if state == 'M' and p.findfilebyname(filename).md5 == oldp.findfilebyname(filename).md5:
|
||||
# no merge necessary... local file is changed, but upstream isn't
|
||||
pass
|
||||
elif state == 'M' and filename in saved_modifiedfiles:
|
||||
|
Loading…
x
Reference in New Issue
Block a user