Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 124967

Summary: dev-util/kdesvn postinst improvements
Product: Gentoo Linux Reporter: Paweł Hajdan, Jr. (RETIRED) <phajdan.jr>
Component: [OLD] DevelopmentAssignee: Aaron Walker (RETIRED) <ka0ttic>
Status: RESOLVED FIXED    
Severity: enhancement CC: dev-tools
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2006-03-04 09:49:29 UTC
einfo about kompare should be printed only if kompare is not installed. It can be done using has_version, according to http://dev.gentoo.org/~plasmaroo/devmanual//ebuild-writing/functions/pkg_postinst/

--- kdesvn-0.7.4.ebuild.old     2006-03-04 18:44:42.000000000 +0100
+++ kdesvn-0.7.4.ebuild 2006-03-04 18:45:23.000000000 +0100
@@ -19,7 +19,7 @@
 need-kde 3.3

 pkg_postinst() {
-       echo
-       einfo "For nice graphical diffs, install kde-base/kompare."
-       echo
+       if ! has_version 'kde-base/kompare'; then
+               einfo "For nice graphical diffs, install kde-base/kompare."
+       fi
 }
Comment 1 George Shapovalov (RETIRED) gentoo-dev 2006-06-12 08:00:48 UTC
The fix is in the 0.8.4 that I just added..