summaryrefslogtreecommitdiffstats
path: root/postsync.d/eix-update
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2009-09-24 21:40:28 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2009-09-24 21:40:28 +0200
commita79d8b6680d4b7f22421d2a4bc0cce2b65a71f7e (patch)
tree426c0219089aa65f365550b52f6ef3832954d334 /postsync.d/eix-update
parent470bc48a8d0a98b1937f2bf44f044388e8910a75 (diff)
downloadportage-ext-a79d8b6680d4b7f22421d2a4bc0cce2b65a71f7e.tar.gz
portage-ext-a79d8b6680d4b7f22421d2a4bc0cce2b65a71f7e.tar.xz
portage-ext-a79d8b6680d4b7f22421d2a4bc0cce2b65a71f7e.zip
added workaround for older eix versions
added seperate file that overrides the eix-update and eix-diff binaries with a funktion that supports older eix removed eix call from regen-overlays by putting the overlay config path relativ to dirname $0 removed switch from eix-update and include seperate file
Diffstat (limited to 'postsync.d/eix-update')
-rwxr-xr-xpostsync.d/eix-update16
1 files changed, 7 insertions, 9 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