[Gambas-user] Error in IDE making package ( gambas-1.0.10 )
Benoit Minisini
gambas at ...1...
Wed Aug 24 18:50:28 CEST 2005
On Friday 19 August 2005 15:57, Charlie Reinl wrote:
> Salut,
>
> this is the right code to test if rbmbuild or rpm are on the box.
>
>
> PUBLIC SUB MakeInstall()
>
> IF MakeExecutable(TRUE, TRUE) THEN RETURN
> IF CheckProgram("rpmbuild") THEN
> RPMBUILD_PROG = "rpmbuild"
> ELSE IF CheckProgram("rpm") THEN
> RPMBUILD_PROG = "rpm"
> ELSE
> Message.Error(("rpmbuild or rpm have to be installed on your system."))
> RETURN
> ENDIF
> FMakeInstall.ShowModal
>
> END
>
> Amicalment
> Charlie
>
No, CheckProgram() returns TRUE if a program is *not* found, so I think the
code is right. What is the problem ?
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list