#1285 make the rpmbuild log output less talkative
Merged 4 years ago by praiskup. Opened 4 years ago by praiskup.

@@ -94,13 +94,13 @@

              process.done()

  

          if process.returncode != 0:

-             raise RuntimeError("Build failed")

+             raise RuntimeError("Mock build failed")

  

      def clean_cache(self):

          """ Do best effort /var/mock/cache cleanup. """

          cmd = MOCK_CALL + [

              "-r", self.mock_config_file,

-             "--scrub", "cache",

+             "--scrub", "cache", "--quiet",

          ]

          subprocess.call(cmd) # ignore failure here, if any

  

file modified
+4 -1
@@ -127,7 +127,10 @@

              action = build_rpm

  

          action(args, config)

-     except (RuntimeError, OSError):

+     except RuntimeError as e:

+         log.error("Copr build error: %s", e)

+         sys.exit(1)

+     except OSError:

          log.exception("")

          sys.exit(1)

      except: # Programmer's mistake

no initial comment

rebased onto 01f01fc2bd7fc6216dd3ff051c3a897d3beb0027

4 years ago

rebased onto 4a25b875e9159880f8d80a5bd6b192f09fb9f5b7

4 years ago

rebased onto b44b523aaee3d5998f2aa8190f30d6320ff2e2d7

4 years ago

rebased onto f33713e2a5d4e433af1372f950290aa32550623d

4 years ago

rebased onto 29e9679

4 years ago

Commit 5d24991 fixes this pull-request

Pull-Request has been merged by praiskup

4 years ago

Pull-Request has been merged by praiskup

4 years ago