Skip to content

Commit

Permalink
Don't write RPM standard output as error (#1211)
Browse files Browse the repository at this point in the history
Currently stdout for building an RPM gets output at error level.

```
[error] + umask 022
[error] + cd /home/david/test/target/rpm/BUILD
[error] + /bin/rm -rf /home/david/test/target/rpm/buildroot
[error] + exit 0
```
  • Loading branch information
Falmarri authored and muuki88 committed Mar 29, 2019
1 parent 4d0f19a commit 68724f2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/scala/com/typesafe/sbt/packager/rpm/RpmHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ object RpmHelper {
else Seq.empty
) ++ Seq(spec.meta.name + ".spec")
log.debug("Executing rpmbuild with: " + args.mkString(" "))
(sys.process.Process(args, Some(specsDir)) ! log) match {
(sys.process.Process(args, Some(specsDir)) ! sys.process
.ProcessLogger(o => log.info(o), e => log.error(e))) match {
case 0 => ()
case code =>
sys.error("Unable to run rpmbuild, check output for details. Errorcode " + code)
Expand Down

0 comments on commit 68724f2

Please sign in to comment.