Read image status from /status/ instead of /status
authorlittlesat <littlesat99@yahoo.com>
Sat, 12 Sep 2015 22:07:46 +0000 (00:07 +0200)
committerlittlesat <littlesat99@yahoo.com>
Sat, 12 Sep 2015 22:07:46 +0000 (00:07 +0200)
The server did automatically redirect it to /status/ but by directly fetch
it from /status/ with the additional / the server does not need this
redirect.

lib/python/Screens/SoftwareUpdate.py

index 0305717..56ac23c 100644 (file)
@@ -87,7 +87,7 @@ class UpdatePlugin(Screen, ProtectedScreen):
                try:
                        # TODO: Use Twisted's URL fetcher, urlopen is evil. And it can
                        # run in parallel to the package update.
-                       status = urlopen("http://openpli.org/status").read().split('!', 1)
+                       status = urlopen("http://openpli.org/status/").read().split('!', 1)
                        if getBoxType() in status[0].split(','):
                                message = len(status) > 1 and status[1] or _("The current beta image might not be stable.\nFor more information see %s.") % ("www.openpli.org")
                                picon = MessageBox.TYPE_ERROR