[Trisquel-devel] Rev 20: extra/gnome-app-install: Updated AppDescView.py to fix packages with no description failing to load in file:///home/bzr/trisquel-packages/trunk/

Ruben Rodriguez ruben at trisquel.info
Thu Mar 15 15:19:45 CET 2012


At file:///home/bzr/trisquel-packages/trunk/

------------------------------------------------------------
revno: 20
revision-id: ruben en trisquel.info-20120315141944-8zbjowtoqt6diuc1
parent: ruben en trisquel.info-20120315133749-udhca0t4c215bdn1
committer: Ruben Rodriguez <ruben en trisquel.info>
branch nick: trunk
timestamp: Thu 2012-03-15 15:19:44 +0100
message:
  extra/gnome-app-install: Updated AppDescView.py to fix packages with no description failing to load
------------ pr�xima parte ------------
=== modified file 'extra/gnome-app-install/AppInstall/widgets/AppDescView.py'
--- a/extra/gnome-app-install/AppInstall/widgets/AppDescView.py	2012-03-15 13:37:49 +0000
+++ b/extra/gnome-app-install/AppInstall/widgets/AppDescView.py	2012-03-15 14:19:44 +0000
@@ -73,7 +73,11 @@
             try:
                 # short_desc = ... already looked up the correct translation
                 # for us.
-                rough_desc = candidate.package._pcache._records.LongDesc.split("\n",1)[1]
+                tmp = candidate.package._pcache._records.LongDesc.split("\n",1)
+                if len(tmp) == 1:
+                    rough_desc = ""
+                else:
+                    rough_desc = tmp[1]
             except AttributeError:
                 rough_desc = candidate and candidate.raw_description.split("\n",1)[1]
             

=== modified file 'extra/gnome-app-install/debian/changelog'
--- a/extra/gnome-app-install/debian/changelog	2012-03-15 13:37:49 +0000
+++ b/extra/gnome-app-install/debian/changelog	2012-03-15 14:19:44 +0000
@@ -1,3 +1,10 @@
+gnome-app-install (0.5.60.1ubuntu2trisquel6-4) slaine; urgency=low
+
+  * Updated AppDescView.py to fix packages with no description failing
+    to load
+
+ -- Trisquel GNU/Linux developers <trisquel-devel en listas.trisquel.info>  Thu, 15 Mar 2012 15:17:56 +0100
+
 gnome-app-install (0.5.60.1ubuntu2trisquel6-3) slaine; urgency=low
 
   * Updated AppDescView.py to fix descriptions failing to load in

=== modified file 'extra/gnome-app-install/po/gnome-app-install.pot'
--- a/extra/gnome-app-install/po/gnome-app-install.pot	2012-03-15 13:37:49 +0000
+++ b/extra/gnome-app-install/po/gnome-app-install.pot	2012-03-15 14:19:44 +0000
@@ -9,7 +9,7 @@
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: Sebastian Heinlein <sebi en glatzor.de>\n"
-"POT-Creation-Date: 2012-03-15 14:35+0100\n"
+"POT-Creation-Date: 2012-03-15 15:18+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL en ADDRESS>\n"
 "Language-Team: LANGUAGE <LL en li.org>\n"
@@ -792,13 +792,13 @@
 msgid "Description"
 msgstr ""
 
-#: ../AppInstall/widgets/AppDescView.py:104
+#: ../AppInstall/widgets/AppDescView.py:108
 #, python-format
 msgid "%s cannot be installed"
 msgstr ""
 
 #. warn that this app is not available on this plattform
-#: ../AppInstall/widgets/AppDescView.py:113
+#: ../AppInstall/widgets/AppDescView.py:117
 #, python-format
 msgid ""
 "%s cannot be installed on your computer type (%s). Either the application "
@@ -806,29 +806,29 @@
 "computer type."
 msgstr ""
 
-#: ../AppInstall/widgets/AppDescView.py:124
+#: ../AppInstall/widgets/AppDescView.py:128
 #, python-format
 msgid ""
 "%s is available in the third party software channel '%s'. To install it, "
 "please click on the checkbox to activate the software channel."
 msgstr ""
 
-#: ../AppInstall/widgets/AppDescView.py:134
+#: ../AppInstall/widgets/AppDescView.py:138
 msgid "This application is bundled with the following applications: "
 msgstr ""
 
-#: ../AppInstall/widgets/AppDescView.py:228
+#: ../AppInstall/widgets/AppDescView.py:232
 msgid "Screenshot"
 msgstr ""
 
-#: ../AppInstall/widgets/AppDescView.py:236
+#: ../AppInstall/widgets/AppDescView.py:240
 #, python-format
 msgid ""
 "\n"
 "Homepage: %s\n"
 msgstr ""
 
-#: ../AppInstall/widgets/AppDescView.py:238
+#: ../AppInstall/widgets/AppDescView.py:242
 #, python-format
 msgid "Version: %s (%s)"
 msgstr ""



More information about the Trisquel-devel mailing list