Skip to content

Commit

Permalink
remove magic about supported version
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Dec 9, 2013
1 parent e040b8f commit 6427b97
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/modules/Profile.rb
Expand Up @@ -59,12 +59,6 @@ def Profile
end


# Detect Version
# @return [String]
def DetectVersion
""
end

# compatibility to new storage lib in 10.0
def storageLibCompat
newPart = []
Expand Down Expand Up @@ -282,16 +276,12 @@ def ReadProperties(properties)
@Version = Ops.get_string(properties, "version", "")
@Description = Ops.get_string(properties, "description", "")

if @Version != "3.0" || @Version == ""
@Version = DetectVersion()
if @Version == ""
Builtins.y2milestone("Can't detect Profile Version")
return
end
if @Version != "3.0"
Builtins.y2milestone("Wrong profile version '#{@Version}'")
@Version = "" #WTF? why nulify when we don't know
else
Builtins.y2milestone("AutoYaST Profile Version %1 Detected.", @Version)
end
nil
end


Expand Down

0 comments on commit 6427b97

Please sign in to comment.