@@ -, +, @@ --- emerge-delta-webrsync | 10 ++++++++++ 1 file changed, 10 insertions(+) --- a/emerge-delta-webrsync +++ a/emerge-delta-webrsync @@ -27,6 +27,16 @@ PORTAGE_GPG_DIR="${f%%|*}" ; f="${f#*|}" TMPDIR="${f%%|*}/snapshots" unset IFS +if [[ ! -w ${PORTDIR} ]] ; then + echo "${0##*/}: PORTDIR is not writable: ${PORTDIR}" + exit 1 +fi + +if [[ ! -w ${DISTDIR} ]] ; then + echo "${0##*/}: DISTDIR is not writable: ${DISTDIR}" + exit 1 +fi + source /usr/lib/portage/bin/isolated-functions.sh || exit 1 if [ -z "$NICENESS_PULLED" ]; then --