[Sugar-devel] [PATCH] Display build number at Name Page
quozl at laptop.org
Wed Jun 15 20:28:31 EDT 2011
On Wed, Jun 15, 2011 at 12:01:55PM -0300, Esteban Bord?n wrote:
> This patch show the build number in the name page for first boot (see
> attached file). It's very useful to test the correct massive flashing
> for technical team.
I like it.
One small technical change though ...
> @@ -86,7 +86,20 @@ class _NamePage(_Page):
> self._intro = intro
> + if os.path.exists('/boot/olpc_build'):
> + build_no_path = '/boot/olpc_build'
> + elif os.path.exists('/etc/fedora-release'):
> + build_no_path = '/etc/fedora-release'
> + else:
> + build_no_path = None
> + if build_no_path:
> + fd = open('/etc/fedora-release', 'r')
The line above should open build_no_path rather than
More information about the Sugar-devel