strange behavior of 'rm'
Tomeu Vizoso
tomeu at sugarlabs.org
Sun Aug 15 11:46:21 EDT 2010
On Sat, Aug 14, 2010 at 03:56, James Cameron <quozl at laptop.org> wrote:
> I'm mystified too. But it doesn't happen when I try it on os851 on
> XO-1.5 ...
>
> 1. the file can be deleted by user olpc in Terminal and stays deleted
> until Sugar restart, (an rm -f works, then an rm -f fails with "No such
> file or directory),
>
> 2. the file can be deleted by user root in text console and stays
> deleted until Sugar restart.
Some git grep turned out this:
def _write_favorites_file(self):
path = env.get_profile_path('favorite_activities')
favorites_data = {'defaults-mtime': self._last_defaults_mtime,
'favorites': self._favorite_bundles}
simplejson.dump(favorites_data, open(path, 'w'), indent=1)
I know this seems counter-intuitive to lots of engineers, but reading
code actually ends up saving time.
Regards,
Tomeu
> --
> James Cameron
> http://quozl.linux.org.au/
> _______________________________________________
> Devel mailing list
> Devel at lists.laptop.org
> http://lists.laptop.org/listinfo/devel
>
More information about the Devel
mailing list