commit:     e248001f442fee25f45aa164c0da1cd41b41e882
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 31 19:20:59 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 31 19:20:59 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e248001f

app-emulation/libguestfs: note that guestfs-tools is now needed for tools

Always show the message rather than conditionally.

Bug: https://bugs.gentoo.org/789354
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...uestfs-1.46.0-r1.ebuild => libguestfs-1.46.0-r2.ebuild} | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/app-emulation/libguestfs/libguestfs-1.46.0-r1.ebuild 
b/app-emulation/libguestfs/libguestfs-1.46.0-r2.ebuild
similarity index 90%
rename from app-emulation/libguestfs/libguestfs-1.46.0-r1.ebuild
rename to app-emulation/libguestfs/libguestfs-1.46.0-r2.ebuild
index 657c5c21058..fafb279fa64 100644
--- a/app-emulation/libguestfs/libguestfs-1.46.0-r1.ebuild
+++ b/app-emulation/libguestfs/libguestfs-1.46.0-r2.ebuild
@@ -195,16 +195,6 @@ src_install() {
        fi
 }
 
-pkg_preinst() {
-       local libguestfs_depstring="<app-emulation/libguestfs-1.46.0-r1"
-
-       # Did we have a version of libguestfs before the split into 
guestfs-tools?
-       # (libguestfs used to install the tools too)
-       if has_version "${libguestfs_depstring}[ocaml]" || has_version 
"${libguestfs_depstring}[perl]" ; then
-               HAD_LIBGUESTFS_WITH_TOOLS=1
-       fi
-}
-
 pkg_postinst() {
        einfo "Please ensure you are in the 'kvm' group for decent performance!"
 
@@ -212,7 +202,5 @@ pkg_postinst() {
                einfo "virt-p2v NOT installed"
        fi
 
-       if [[ ${HAD_LIBGUESTFS_WITH_TOOLS} -eq 1 ]] ; then
-               ewarn "libguestfs' tools are now packaged as 
app-emulation/guestfs-tools from 1.46.0 onwards!"
-       fi
+       einfo "Note that common tools like virt-resize are now part of 
app-emulation/guestfs-tools"
 }

Reply via email to