From d6dd9b69b5ac0fbcc57a87b940cf5178cb9f5cbe Mon Sep 17 00:00:00 2001
From: Alexander Sulfrian <alexander@sulfrian.net>
Date: Tue, 14 Jul 2009 18:24:44 +0200
Subject: added workaround for stable eix

---
 postsync.d/eix-update | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/postsync.d/eix-update b/postsync.d/eix-update
index c839454..a94196f 100755
--- a/postsync.d/eix-update
+++ b/postsync.d/eix-update
@@ -46,11 +46,17 @@ done
 
 echo 
 
-[ -x /usr/bin/eix-update ] && /usr/bin/eix-update ${OVERLAY_PARAM}
+( [ -x /usr/bin/eix-update ] && /usr/bin/eix-update ${OVERLAY_PARAM} ) || ( [ -x /usr/bin/update-eix ] && /usr/bin/update-eix ${OVERLAY_PARAM} )
 
 if [ -r "${EIXCACHE}" -a -r "${TMPFILE}" ]; then
 	echo
-	eix-diff "${TMPFILE}"
+
+	if [ -x /usr/bin/eix-diff ] ; then
+		eix-diff "${TMPFILE}"
+	else
+		[ -x /usr/bin/diff-eix ] && diff-eix "${TMPFILE}"
+	fi
+
 	echo
 	rm -f "${TMPFILE}"
 fi
-- 
cgit v1.2.3