[Fwd: Re: [Sugar-devel] [PATCH] sl#2822: Software-Update should pre-select only to-be-upgraded activities by default.]

Jerry Vonau jvonau at shaw.ca
Thu Dec 22 13:40:25 EST 2011


Hi all:

What this patch solves is the issue of once you remove an activity from
the XO, running sugar-update-control then wants to re-install the
activity by default. This patch will show those activities as available
for installation but not pre-selected, only activities that are an
upgrade to what is already installed will be preselected. Any chance of
getting this into sugar-update-control? 

Jerry

On Thu, 2011-12-22 at 12:47 +0530, Ajay Garg wrote:
> This patch is for the "sugar-update-control" rpm.
> 
>  src/model.py |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/src/model.py b/src/model.py
> index 303f337..974c050 100755
> --- a/src/model.py
> +++ b/src/model.py
> @@ -449,6 +449,7 @@ class UpdateList(gtk.ListStore):
>                  raise RuntimeError("can't find version for %s" %
>                                     row[UPDATE_URL])
>              row[DESCRIPTION_BIG] = name
> +            row[UPDATE_SELECTED] = False
>              row[DESCRIPTION_SMALL] = \
>                  _('New version %(version)s (Size: %(size)s)') % \
>                  {'version':version, 'size':_humanize_size(row[UPDATE_SIZE])}

Thanks, works as expected.

Jerry

_______________________________________________
Sugar-devel mailing list
Sugar-devel at lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel





More information about the Devel mailing list