vendored/puppet/lib/puppet/module_tool/local_tarball.rb in bolt-0.20.3 vs vendored/puppet/lib/puppet/module_tool/local_tarball.rb in bolt-0.20.5
- old
+ new
@@ -6,15 +6,15 @@
module Puppet::ModuleTool
class LocalTarball < SemanticPuppet::Dependency::Source
attr_accessor :release
- def initialize(filename, strict_semver = true)
+ def initialize(filename)
unpack(filename, tmpdir)
Puppet.debug "Unpacked local tarball to #{tmpdir}"
- mod = Puppet::Module.new('tarball', tmpdir, nil, strict_semver)
+ mod = Puppet::Module.new('tarball', tmpdir, nil)
@release = ModuleRelease.new(self, mod)
end
def fetch(name)
if @release.name == name
@@ -50,10 +50,10 @@
version = SemanticPuppet::Version.parse(mod.version)
release = "#{name}@#{version}"
if mod.dependencies
dependencies = mod.dependencies.map do |dep|
- Puppet::ModuleTool.parse_module_dependency(release, dep, mod.strict_semver?)[0..1]
+ Puppet::ModuleTool.parse_module_dependency(release, dep)[0..1]
end
dependencies = Hash[dependencies]
end
super(source, name, version, dependencies || {})