git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2744404
)
fix existHDD a bit
author
Felix Domke
<tmbinc@elitedvb.net>
Tue, 26 Feb 2008 22:19:04 +0000
(22:19 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Tue, 26 Feb 2008 22:19:04 +0000
(22:19 +0000)
lib/python/Components/Harddisk.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/Harddisk.py
b/lib/python/Components/Harddisk.py
index 3e72122ec31dd8fb872f1cd7c439bc23bf6686a6..8455b865e9145a7ab188627432fba7769625387c 100644
(file)
--- a/
lib/python/Components/Harddisk.py
+++ b/
lib/python/Components/Harddisk.py
@@
-198,15
+198,15
@@
def existHDD(num):
mediafile = tryOpen(num2prochdx(num) + "media")
if mediafile == "":
- return
-1
+ return
False
line = mediafile.readline()
mediafile.close()
-
+
if line.startswith("disk"):
- return
1
-
- return
-1
+ return
True
+
+ return
False
class Partition:
def __init__(self, mountpoint, description = "", force_mounted = False):