[f23-branch 1/1] Fix inst.repo=hd: is not working (#1252902)
jkonecny12
installerbot-noreply at redhat.com
Thu Aug 20 12:38:35 UTC 2015
From: Jiri Konecny <jkonecny at redhat.com>
isys method isIsoImage has problem with comparision of bytes with the
str. Another Python 3 problem.
Resolves: rhbz#1252902
---
pyanaconda/isys/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/isys/__init__.py b/pyanaconda/isys/__init__.py
index f67ff23..a4445bb 100644
--- a/pyanaconda/isys/__init__.py
+++ b/pyanaconda/isys/__init__.py
@@ -59,7 +59,7 @@ def isIsoImage(path):
with open(path, "rb") as isoFile:
for blockNum in range(16, 100):
isoFile.seek(blockNum * ISO_BLOCK_SIZE + 1)
- if isoFile.read(5) == "CD001":
+ if isoFile.read(5) == b"CD001":
return True
except IOError:
pass
--
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/ea13b3fc5fe3b71fe45495a3be33573206c377ea
More information about the anaconda-patches
mailing list