diff options
Diffstat (limited to 'postsync.d')
-rwxr-xr-x | postsync.d/eix-update | 16 | ||||
-rwxr-xr-x | postsync.d/regen-overlays | 2 |
2 files changed, 8 insertions, 10 deletions
diff --git a/postsync.d/eix-update b/postsync.d/eix-update index a94196f..729f5c4 100755 --- a/postsync.d/eix-update +++ b/postsync.d/eix-update @@ -2,8 +2,11 @@ . /etc/init.d/functions.sh -EIXCACHE=$(update-eix --print EIX_CACHEFILE) -OVERLAY_CONFIG_DIR="$(update-eix --print EIXCFGDIR)/overlays" +# implement old/new switch for older versions of eix +[ -r "$(dirname $0)/../eix-switch.sh" ] && . "$(dirname $0)/../eix-switch.sh" + +EIXCACHE=$(eix-update --print EIX_CACHEFILE) +OVERLAY_CONFIG_DIR="$(dirname $0)/../overlays" TMPFILE="" if [ -r "${EIXCACHE}" ]; then @@ -46,17 +49,12 @@ done echo -( [ -x /usr/bin/eix-update ] && /usr/bin/eix-update ${OVERLAY_PARAM} ) || ( [ -x /usr/bin/update-eix ] && /usr/bin/update-eix ${OVERLAY_PARAM} ) +eix-update ${OVERLAY_PARAM} if [ -r "${EIXCACHE}" -a -r "${TMPFILE}" ]; then echo - if [ -x /usr/bin/eix-diff ] ; then - eix-diff "${TMPFILE}" - else - [ -x /usr/bin/diff-eix ] && diff-eix "${TMPFILE}" - fi + eix-diff "${TMPFILE}" - echo rm -f "${TMPFILE}" fi diff --git a/postsync.d/regen-overlays b/postsync.d/regen-overlays index bbaec32..89d70dd 100755 --- a/postsync.d/regen-overlays +++ b/postsync.d/regen-overlays @@ -2,7 +2,7 @@ . /etc/init.d/functions.sh -OVERLAY_CONFIG_DIR="$(update-eix --print EIXCFGDIR)/overlays" +OVERLAY_CONFIG_DIR="$(dirname $0)/../overlays" ebegin "Regenerating overlay config ..." |