Skip to content

Commit

Permalink
Merge pull request #23 from yast/sle15_support
Browse files Browse the repository at this point in the history
Fixed importing a SLE15 installation medium (bsc#1103621)
  • Loading branch information
lslezak committed Aug 15, 2018
2 parents 46d1a53 + 4aefea4 commit 0aca1c5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ Makefile.am.common
tmp.*
*.log
*.ybc
/.yardoc
/doc
!/doc/SPEC
*.exp
runtest.sh
7 changes: 7 additions & 0 deletions package/yast2-instserver.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Aug 15 13:42:35 UTC 2018 - lslezak@suse.cz

- Do not crash when importing a SLE15 installation medium
(bsc#1103621)
- 3.1.6

-------------------------------------------------------------------
Wed Jun 1 13:58:26 UTC 2016 - igonzalezsosa@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-instserver.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-instserver
Version: 3.1.5
Version: 3.1.6
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
9 changes: 4 additions & 5 deletions src/include/instserver/dialogs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -388,18 +388,17 @@ def CopyCDs(dir, stype, iso, promptmore, cddrive)
)
end

content = ReadContentFile(Ops.add(cdpath, "/content"))
content_path = File.join(cdpath, "content")
content = ReadContentFile(content_path) if File.exist?(content_path)
Builtins.y2milestone("Content file: %1", content)
# don't rewrite the already read content file,
# content file from CORE9 would rewrite already read file from SLES9
if current_cd == 1 && content_first_CD == ""
Builtins.y2milestone(
"Reading content file %1",
Ops.add(cdpath, "/content")
)
content_first_CD = Convert.to_string(
SCR.Read(path(".target.string"), Ops.add(cdpath, "/content"))
content_path
)
content_first_CD = File.read(content_path) if File.exist?(content_path)
Builtins.y2debug("content file: %1", content_first_CD)
end
if Ops.get(media, 2, "") != "" &&
Expand Down

0 comments on commit 0aca1c5

Please sign in to comment.