From dff868466d255a845eed5aae912ebfaaa61d582d Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Fri, 10 Jul 2009 13:21:18 +0200 Subject: don't catch IOError in readFile() --- lib/python/Components/Harddisk.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'lib/python') diff --git a/lib/python/Components/Harddisk.py b/lib/python/Components/Harddisk.py index 637c8898..2efdb68f 100755 --- a/lib/python/Components/Harddisk.py +++ b/lib/python/Components/Harddisk.py @@ -6,11 +6,7 @@ import time from Components.Console import Console def readFile(filename): - try: - file = open(filename) - except IOError: - return "" - + file = open(filename) data = file.read().strip() file.close() return data -- cgit v1.2.3 From c1d2b4c1896fc58681e1a7e718e97b08e03a5b5c Mon Sep 17 00:00:00 2001 From: Fraxinas Date: Mon, 13 Jul 2009 11:39:24 +0200 Subject: try deleting 4 primary partitions before creating new partition table --- lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/python') diff --git a/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py b/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py index 6d404cf2..6292a46f 100644 --- a/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py +++ b/lib/python/Plugins/SystemPlugins/NFIFlash/downloader.py @@ -494,7 +494,7 @@ class NFIDownload(Screen): self.taskstring = "" self.container.appClosed.append(self.fdisk_finished) self.container.execute("fdisk " + self.stickdevice + "/disc") - self.container.write("d\nn\np\n1\n\n\nt\n6\nw\n") + self.container.write("d\n4\nd\n3\nd\n2\nd\nn\np\n1\n\n\nt\n6\nw\n") self.delayTimer = eTimer() self.delayTimer.callback.append(self.progress_increment) self.delayTimer.start(105, False) -- cgit v1.2.3