[PATCH] make commit --noservice works for commitExtPackage

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] make commit --noservice works for commitExtPackage

Michal Vyskocil-2
---
 osc/core.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/osc/core.py b/osc/core.py
index 22c9f39..bb15b58 100644
--- a/osc/core.py
+++ b/osc/core.py
@@ -787,7 +787,7 @@ class Project:
                     elif pac in self.pacs_broken:
                         print 'osc: \'%s\' package not found' % pac
                     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:
                 self.write_packages()
         else:
@@ -856,7 +856,7 @@ class Project:
         delete_package(self.apiurl, self.name, 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"""
         if os_path_samefile(os.path.join(self.dir, pac), os.getcwd()):
             pac_path = '.'
@@ -875,7 +875,7 @@ class Project:
                       template_args=({'name': pac, 'user': user}), apiurl=apiurl)
         p = Package(pac_path)
         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):
         r = []
--
1.7.11.4


signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] make commit --noservice works for commitExtPackage

Dirk Müller
On Monday 10 September 2012, Michal Vyskocil wrote:
> ---
>  osc/core.py | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Hi,

pushed to git.

Thanks,
Dirk
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]