mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-24 22:06:14 +01:00
* initial support for OBS source services
* TODO: local service tool calls
This commit is contained in:
parent
009713db18
commit
ecf88a57bc
1
NEWS
1
NEWS
@ -4,6 +4,7 @@
|
||||
(-r role)
|
||||
- fix and improve request list and show output
|
||||
- new osc rremove command for remote source files removal
|
||||
- handle _service\* files correctly
|
||||
|
||||
0.120:
|
||||
- support "setlinkrev" for whole projects
|
||||
|
26
osc/core.py
26
osc/core.py
@ -737,15 +737,16 @@ class Package:
|
||||
|
||||
have_conflicts = False
|
||||
for filename in self.todo:
|
||||
st = self.status(filename)
|
||||
if st == 'A' or st == 'M':
|
||||
self.todo_send.append(filename)
|
||||
print statfrmt('Sending', os.path.join(pathn, filename))
|
||||
elif st == 'D':
|
||||
self.todo_delete.append(filename)
|
||||
print statfrmt('Deleting', os.path.join(pathn, filename))
|
||||
elif st == 'C':
|
||||
have_conflicts = True
|
||||
if not filename.startswith('_service:'):
|
||||
st = self.status(filename)
|
||||
if st == 'A' or st == 'M':
|
||||
self.todo_send.append(filename)
|
||||
print statfrmt('Sending', os.path.join(pathn, filename))
|
||||
elif st == 'D':
|
||||
self.todo_delete.append(filename)
|
||||
print statfrmt('Deleting', os.path.join(pathn, filename))
|
||||
elif st == 'C':
|
||||
have_conflicts = True
|
||||
|
||||
if have_conflicts or self.islinkrepair():
|
||||
print 'Please resolve all conflicts before committing using "osc resolved FILE"!'
|
||||
@ -812,6 +813,13 @@ class Package:
|
||||
self.write_deletelist()
|
||||
self.update_datastructs()
|
||||
|
||||
if self.filenamelist.count('_service'):
|
||||
print 'The package contains a source service, update generated files from server...'
|
||||
for filename in self.todo:
|
||||
if filename.startswith('_service:') and os.path.exists(filename):
|
||||
os.unlink(filename)
|
||||
self.update()
|
||||
|
||||
def write_conflictlist(self):
|
||||
if len(self.in_conflict) == 0:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user