Skip to content
Permalink
Browse files

improvements suggested by review

  • Loading branch information...
jreidinger committed Jan 8, 2014
1 parent 5c2200b commit 3a264c1309882feaafc9cf8df810e360c006586e
Showing with 6 additions and 3 deletions.
  1. +3 −1 src/clients/clone_finish.rb
  2. +3 −2 src/clients/clone_proposal.rb
@@ -21,6 +21,8 @@


module Yast
import "Installation"

class CloneFinishClient < Client
def main

@@ -52,7 +54,7 @@ def main

# copy from insts_sys to target system
if File.exists? "/root/autoinst.xml"
WFM.Execute(path(".local.bash"), "cp /root/autoinst.xml /mnt/root/autoinst.xml")
WFM.Execute(path(".local.bash"), "cp /root/autoinst.xml #{Installation.destdir}/root/autoinst.xml")
end

Builtins.y2milestone("clone_finish Write finished")
@@ -18,6 +18,7 @@ def self.value
class CloneProposalClient < Client
CLONE_ENABLE_LINK = "clone_enable"
CLONE_DISABLE_LINK = "clone_disable"
CLONE_ACTION_ID = "clone"

def main
textdomain "installation"
@@ -64,7 +65,7 @@ def main
CloneProposalHolder.value = false
when CLONE_ENABLE_LINK
CloneProposalHolder.value = true
when "clone"
when CLONE_ACTION_ID
clone_dialog
else
raise "Unexpected value #{chosen_id}"
@@ -79,7 +80,7 @@ def main
"menu_title" => _(
"&Clone System Configuration"
),
"id" => "clone"
"id" => CLONE_ACTION_ID
}
when "Write"
WFM.call "clone_system" if CloneProposalHolder.value

0 comments on commit 3a264c1

Please sign in to comment.
You can’t perform that action at this time.