Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jul 2004 22:55:39 +0300
From:      Panagiotis Astithas <past@netmode.ntua.gr>
To:        Jeremy Faulkner <gldisater@gldis.ca>
Cc:        freebsd-java@freebsd.org
Subject:   Re: HEADS UP: Eclipse 3.0 updated
Message-ID:  <410561BB.8080603@netmode.ntua.gr>
In-Reply-To: <41053064.1020208@gldis.ca>
References:  <20040725171544.71dc613e.nork@FreeBSD.org> <41042F42.80604@gldis.ca> <4104BD5F.70608@ebs.gr> <41053064.1020208@gldis.ca>

index | next in thread | previous in thread | raw e-mail

Jeremy Faulkner wrote:
> I did not describe my fix, I described the problem. Here is another 
> patch that removes the unnecessary greps. The redirection of stderr in 
> this patch to /dev/null is only to avoid having it go to console during 
> the compile.
> 
> It doesn't really matter if you have KDE installed or not, you can test 
> the fix by making it search for a pkg that you don't have installed.
> 
> pkg_info -xc 'SomePkgThatIsNotInstalled' > test.txt
> <pkg not found error to stderr>
> cat test.txt
> <nothing>
> 
> pkg_info -xc 'SomePkgThatIsInstalled' > test.txt
> <no output>
> cat test.txt
> <the pkg information>
> 
> So, pkg_info returns nothing to stderr if the pkg is not installed, and 
> returns the pkg information if the pkg is installed, thus the logic 
> reversal in the if statement.

(I suppose you meant s/stderr/stdout/)
Thanks, I can see what you meant now. I'm OK with this, if you have 
verified that the patch works (I can't test it unfortunately).

Cheers,

Panagiotis


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?410561BB.8080603>