From 56bee9d16b9f6adac1077b9b02d5469e8e8c1838 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 25 Jul 2016 20:28:18 +0100 Subject: Write update errors to file --- virtual/miller-base/files/write-new-updates | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/virtual/miller-base/files/write-new-updates b/virtual/miller-base/files/write-new-updates index 04b01df..e5da8d7 100755 --- a/virtual/miller-base/files/write-new-updates +++ b/virtual/miller-base/files/write-new-updates @@ -3,8 +3,12 @@ unset ABI ABI_X86 UPDATESTATEDIR=$(portageq envvar UPDATESTATEDIR) updates="${UPDATESTATEDIR:-/tmp}/`hostname`_updates.txt" +errors="${UPDATESTATEDIR:-/tmp}/`hostname`_update_errors.txt" tmp="/tmp/$$.updates" -emerge -uDNpvq --with-bdeps=y @world @system > ${tmp} +tmperr="/tmp/$$.errors" +emerge -uDNpvq --with-bdeps=y @world @system > ${tmp} 2> ${tmperr} mv ${tmp} ${updates} +mv ${tmperr} ${errors} +cat ${errors} -- cgit v1.2.3