From d3a3267e21a659bde911da253c1196c9312176ba Mon Sep 17 00:00:00 2001 From: Anish Mangal Date: Thu, 17 Mar 2011 15:54:44 +0000 Subject: Hack for copying bundle to usb bug - Hack for copying bundle to usb bug - Bump sugar release to v60 --- diff --git a/rpms/sugar/sugar-Copy-.xo-to-removable-device-hack.patch b/rpms/sugar/sugar-Copy-.xo-to-removable-device-hack.patch new file mode 100644 index 0000000..3bd7e34 --- /dev/null +++ b/rpms/sugar/sugar-Copy-.xo-to-removable-device-hack.patch @@ -0,0 +1,56 @@ +From patchwork Wed Mar 16 12:55:53 2011 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +Subject: [sugar] Copy .xo to removable device hack +Date: Wed, 16 Mar 2011 17:55:53 -0000 +From: Martin Abente +X-Patchwork-Id: 721 +Message-Id: <1300280153-7190-1-git-send-email-martin.abente.lahaye@gmail.com> +To: dextrose@lists.sugarlabs.org, anish@sugarlabs.org, alsroot@sugarlabs.org + +Plan Ceibal folks reported that it wasn't possible +to copy .xo files from datastore to removable +devices. This bug affects all versions of dextrose +and other distros based on sugar 0.88.1. + +The problem was caused by a too generalist logic +at _check_for_bundle in which the journal was trying +to install bundles also when copying files to +removable devices. + +This bug seems to be fixed in mainstream, but as side +effect of a big change to the journal code. + +This patch checks for corner cases and avoid any attempt of +installation when copying .xo files to removable devices. + +Version 2: Add alsroot suggestions. + +Signed-off-by: Martin Abente + +--- +src/jarabe/journal/journalactivity.py | 8 +++++++- + 1 files changed, 7 insertions(+), 1 deletions(-) + +diff --git a/src/jarabe/journal/journalactivity.py b/src/jarabe/journal/journalactivity.py +index b96135c..916db7c 100644 +--- a/src/jarabe/journal/journalactivity.py ++++ b/src/jarabe/journal/journalactivity.py +@@ -277,9 +277,15 @@ class JournalActivity(JournalWindow): + self._list_view.update_dates() + + def _check_for_bundle(self, object_id): ++ # XXX temporary hack, avoid bundle installation ++ # when copying .xo files to removable devices. ++ metadata = model.get(object_id) ++ ++ if not model.is_editable(metadata): ++ return ++ + registry = bundleregistry.get_registry() + +- metadata = model.get(object_id) + if metadata.get('progress', '').isdigit(): + if int(metadata['progress']) < 100: + return diff --git a/rpms/sugar/sugar.spec b/rpms/sugar/sugar.spec index e82f7e1..b53cf28 100644 --- a/rpms/sugar/sugar.spec +++ b/rpms/sugar/sugar.spec @@ -3,7 +3,7 @@ Summary: Constructionist learning platform Name: sugar Version: 0.88.1 -Release: 5.59dxo%{?dist} +Release: 5.60dxo%{?dist} URL: http://sugarlabs.org/ Source0: http://download.sugarlabs.org/sources/sucrose/glucose/%{name}/%{name}-%{version}.tar.bz2 @@ -195,6 +195,8 @@ patch3501: Cursor-Acceleration-default-value.patch patch3502: Paraguay-Protected-list.patch patch3503: Sugar-Fix-globalkey-touchpad-corner-case.patch +patch3601: sugar-Copy-.xo-to-removable-device-hack.patch + License: GPLv2+ Group: User Interface/Desktops Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -414,6 +416,8 @@ multiple instances of sugar. %patch3502 -p1 %patch3503 -p1 +%patch3601 -p1 + %build autoreconf %configure @@ -490,6 +494,9 @@ rm -rf %{buildroot} %{_datadir}/icons/hicolor/scalable/apps/sugar-xo.svg %changelog +* Thu Mar 17 2011 Anish Mangal 0.88.1-5.60 +- XXX Copy bundle to removable device (hack by tch) + * Mon Mar 14 2011 Anish Mangal 0.88.1-5.59 - Update check cursor theme patch -- cgit v0.9.1