[copr] skvidal-backend: still need something like a useful output when it does break (58c0441)

skvidal at fedorahosted.org skvidal at fedorahosted.org
Wed Dec 5 20:16:15 UTC 2012


Repository : http://git.fedorahosted.org/cgit/copr.git

On branch  : skvidal-backend

>---------------------------------------------------------------

commit 58c0441ccecf4694cc45a82f43fcf372a9090528
Author: Seth Vidal <skvidal at fedoraproject.org>
Date:   Wed Dec 5 15:14:14 2012 -0500

    still need something like a useful output when it does break


>---------------------------------------------------------------

 copr-be.py |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/copr-be.py b/copr-be.py
index 3be1828..d98feea 100644
--- a/copr-be.py
+++ b/copr-be.py
@@ -28,7 +28,7 @@ class CoprBackend(object):
             raise errors.CoprBackendError, "Must specify config_file"
         
         self.config_file = config_file
-        self._ext_opts = ext_opts # to stow our cli options for read_conf()
+        self.ext_opts = ext_opts # to stow our cli options for read_conf()
         self.opts = self.read_conf()
 
         logdir = os.path.dirname(self.opts.logfile)
@@ -79,8 +79,8 @@ class CoprBackend(object):
         if not opts.jobsdir or not opts.destdir:
             raise errors.CoprBackendError, "Incomplete Config - must specify jobsdir and destdir in configuration"
             
-        if self._ext_opts:
-            for v in self._ext_opts:
+        if self.ext_opts:
+            for v in self.ext_opts:
                 setattr(opts, v, self.ext_opts.get(v))
         return opts
         
@@ -213,8 +213,9 @@ def main(args):
         if 'cbe' in locals():
             for w in cbe.workers:
                 w.terminate()
-        
-
+        raise
+    except KeyboardInterrupt, e:
+        pass
     
 if __name__ == '__main__':
     try:



More information about the copr-devel mailing list