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

make commit --noservice work for commitExtPackage

This commit is contained in:
Michal Vyskocil 2012-09-17 13:12:50 +02:00 committed by Dirk Mueller
parent eef243f6be
commit 4ab6f905b3

View File

@ -787,7 +787,7 @@ class Project:
elif pac in self.pacs_broken: elif pac in self.pacs_broken:
print 'osc: \'%s\' package not found' % pac print 'osc: \'%s\' package not found' % pac
elif state == None: elif state == None:
self.commitExtPackage(pac, msg, todo, verbose=verbose) self.commitExtPackage(pac, msg, todo, verbose=verbose, skip_local_service_run=skip_local_service_run)
finally: finally:
self.write_packages() self.write_packages()
else: else:
@ -856,7 +856,7 @@ class Project:
delete_package(self.apiurl, self.name, pac) delete_package(self.apiurl, self.name, pac)
self.del_package_node(pac) self.del_package_node(pac)
def commitExtPackage(self, pac, msg, files = [], verbose=False): def commitExtPackage(self, pac, msg, files = [], verbose=False, skip_local_service_run=False):
"""commits a package from an external project""" """commits a package from an external project"""
if os_path_samefile(os.path.join(self.dir, pac), os.getcwd()): if os_path_samefile(os.path.join(self.dir, pac), os.getcwd()):
pac_path = '.' pac_path = '.'
@ -875,7 +875,7 @@ class Project:
template_args=({'name': pac, 'user': user}), apiurl=apiurl) template_args=({'name': pac, 'user': user}), apiurl=apiurl)
p = Package(pac_path) p = Package(pac_path)
p.todo = files p.todo = files
p.commit(msg=msg, verbose=verbose) p.commit(msg=msg, verbose=verbose, skip_local_service_run=skip_local_service_run)
def __str__(self): def __str__(self):
r = [] r = []