Skip to content

Commit

Permalink
Code review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Aug 25, 2016
1 parent 0aacd81 commit 9ac2f2c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions doc/SELF_UPDATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ These are the basic steps performed by YaST in order to perform the update:

### Language Selection

The self update step is exeuted before selecting the language
(`inst_complex_welcome`). That means the self update progress and
The self update step is executed before selecting the language
(`inst_complex_welcome` client). That means the self update progress and
the errors which happens during the self update process are by default displayed
in English.

Expand Down
4 changes: 2 additions & 2 deletions src/lib/installation/clients/inst_update_installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -597,12 +597,12 @@ def profile_valid_scheme?
#
# @see Yast::Profile.current
def current_profile
return nil if Yast::Profile.current == {}
return nil if Profile.current == {}

Profile.current
end

# Fetchs the profile from the given URI
# Fetch the profile from the given URI
#
# @return [Hash, nil] current profile if fetched or exists; nil otherwise
#
Expand Down
4 changes: 4 additions & 0 deletions src/lib/installation/update_repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ def remove_update_files
# Inst-sys has by default 64 loop devices, but some of them already used,
# in an extreme case we might run out of loop devices.
#
# On the other hand downloading and unpacking all packages at once might
# require a lot of memory, the installer could crash on a system with
# small memory.
#
# @param mount_path [Pathname] Directory to mount the update
#
# @raise UpdatesNotFetched
Expand Down
2 changes: 1 addition & 1 deletion test/inst_update_installer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def import(_args); end
end
end

it "intializes the package management" do
it "initializes the package management" do
# override the global stub
expect(subject).to receive(:initialize_packager).and_call_original

Expand Down
2 changes: 1 addition & 1 deletion test/update_repository_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
end

describe "#cleanup" do
it "deletes the repository and releases it" do
it "deletes and releases the repository" do
expect(Yast::Pkg).to receive(:SourceDelete).with(repo_id)
expect(Yast::Pkg).to receive(:SourceReleaseAll)
expect(Yast::Pkg).to receive(:SourceSaveAll)
Expand Down

0 comments on commit 9ac2f2c

Please sign in to comment.