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

- adapt 'osc pull' to new addlist implementation

This commit is contained in:
Michael Schroeder 2010-10-29 17:41:39 +02:00
parent 6b618b29be
commit 1299063228

View File

@ -5756,6 +5756,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
print statfrmt('D', name)
p.put_on_deletelist(name)
os.unlink(name)
elif md5_old == '':
print statfrmt('A', name)
self.download(name, md5_new, dir_new, name)
p.put_on_addlist(name)
else:
print statfrmt('U', name)
self.download(name, md5_new, dir_new, name)
@ -5790,6 +5794,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
print statfrmt('?', name)
p.put_on_conflictlist(name)
p.write_deletelist()
p.write_addlist()
p.write_conflictlist()
# store new linkrev
store_write_string(p.absdir, '_pulled', linkinfo_new.get('srcmd5') + '\n')