[Gambas-user] knowing if PPA is possible

Bruce Steers bsteers4 at gmail.com
Thu Mar 3 16:18:42 CET 2022


I'm adding ppa upgrade option to my gambas updater.

i need to know if PPA is possible though.

Best solution I have is using uname as it apparently should exist on most
linux os's
Something like this...

*Shell "uname -v" To sVar*
*If sVar Like "*-Ubuntu SMP *" Then bPPA_Possible = True*

that works for ubuntu and linuxmint and "should" i guess work for any other
ubuntu based os's

other option was to check /etc/os-release and only add known working os's.
Ubuntu and Linuxmint are the only ones i know of.

Any suggestions/warnings welcomed

Cheers
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220303/7e185926/attachment.htm>


More information about the User mailing list