blob: 28acf46c9da30f4f27a35759bef3c82ee2873180 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
[ -s "$PORTAGE_TMPDIR" ] && exec -c /bin/bash -l -c $0
EMERGEEXTRAOPTS=$(portageq envvar EMERGEEXTRAOPTS)
UPDATESTATEDIR=$(portageq envvar UPDATESTATEDIR)
updates="${UPDATESTATEDIR:-/tmp}/`hostname`_updates.txt"
errors="${UPDATESTATEDIR:-/tmp}/`hostname`_update_errors.txt"
tmp="/tmp/$$.updates"
tmperr="/tmp/$$.errors"
emerge -uDNpvq --with-bdeps=y ${EMERGEEXTRAOPTS} @world @system > ${tmp} 2> ${tmperr}
mv ${tmp} ${updates}
mv ${tmperr} ${errors}
cat ${errors}
|