diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-07-25 20:28:18 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-07-25 20:28:18 +0100 |
commit | 56bee9d16b9f6adac1077b9b02d5469e8e8c1838 (patch) | |
tree | c334df89b7d3d8bf6252382f8fcd5b14884a6f20 /virtual/miller-base | |
parent | Extract settings with portageq, not emerge --info hack (diff) | |
download | portage-56bee9d16b9f6adac1077b9b02d5469e8e8c1838.tar.bz2 portage-56bee9d16b9f6adac1077b9b02d5469e8e8c1838.tar.xz portage-56bee9d16b9f6adac1077b9b02d5469e8e8c1838.zip |
Write update errors to file
Diffstat (limited to 'virtual/miller-base')
-rwxr-xr-x | virtual/miller-base/files/write-new-updates | 6 |
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} |