From: MichaƂ Bartoszkiewicz Date: Tue, 13 Mar 2012 19:42:35 +0000 (+0100) Subject: Aktualizacja app-portage/eix-9999 X-Git-Url: https://git.bzium.org/embe/overlay.git/commitdiff_plain/f599af20a14e59efb69f9bf97f90aba8baa429cb?ds=sidebyside;pf=embe Aktualizacja app-portage/eix-9999 --- diff --git a/app-portage/eix/Manifest b/app-portage/eix/Manifest index a0b9453..d342587 100644 --- a/app-portage/eix/Manifest +++ b/app-portage/eix/Manifest @@ -1 +1 @@ -EBUILD eix-9999.ebuild 1462 RMD160 7d608a4828f8a20bf32a05e1353d4634b68fc3ae SHA1 fe000093b6add6168299afaff497a69f90e1416a SHA256 f1c6375801f09fb30f1f1bb7668dee630ccf94ed36b23206426d1e5aecd618d4 +EBUILD eix-9999.ebuild 1730 RMD160 e56a09efcdcd15ce42dc1590ce2f099c0f0bcc62 SHA1 827970d8efbd56c4503cb09a7c99423573203a02 SHA256 1f3571f7759d7b6954e9524cfdeab10091d08bd7a0cad75a476f75c9389ff065 diff --git a/app-portage/eix/eix-9999.ebuild b/app-portage/eix/eix-9999.ebuild index 64df38b..22545fd 100644 --- a/app-portage/eix/eix-9999.ebuild +++ b/app-portage/eix/eix-9999.ebuild @@ -46,3 +46,16 @@ src_install() { keepdir /var/cache/eix fowners portage:portage /var/cache/eix } + +pkg_preinst() { + for file in "${EROOT}"/var/cache/eix{,.previous} + do + [ ! -f "${file}" ] && continue + rm "${file}" || die "Removing ${file} failed." + done +} + +pkg_postinst() { + # src_install zmienia portage na root + chown portage:portage "${EROOT}/var/cache/eix" +}