summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xvirtual/miller-base/files/write-new-updates6
1 files changed, 5 insertions, 1 deletions
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}