[Sugar-devel] Check for binaries, not config files, when deciding if a tool is installed

Jonas Smedegaard dr at jones.dk
Thu Sep 10 08:41:15 EDT 2009


Hi Michael (and others),

Not sure, but it seems from src/sugar/activity/activityfactory.py 
(approx. line 250) of recent sugar-toolkit that rainbow is used if the 
path /etc/olpc-security exists on the system.

If that is correct, then I recommend changing that to instead test for 
the existence of some binary, as the Debian packaging system (and most 
probably other packaging systems as well) preserve configuration files 
when removing a package. Only whn a package is "purged" are 
configuration files removed - and even then directories may be kept if 
it contains other files (e.g. backup files from various editors) not 
installed by the package.


Kind regards,

  - Jonas

-- 
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136  Website: http://dr.jones.dk/

  [x] quote me freely  [ ] ask before reusing  [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://lists.sugarlabs.org/archive/sugar-devel/attachments/20090910/38945c7a/attachment.pgp 


More information about the Sugar-devel mailing list