lib/beaker/host/unix/file.rb in beaker-2.36.0 vs lib/beaker/host/unix/file.rb in beaker-2.37.0
- old
+ new
@@ -60,13 +60,21 @@
def repo_filename(package_name, build_version)
variant, version, arch, codename = self['platform'].to_array
repo_filename = "pl-%s-%s-" % [ package_name, build_version ]
case variant
- when /fedora|el|centos|cisco/
+ when /fedora|el|centos|cisco_nexus|cisco_ios_xr/
variant = 'el' if variant == 'centos'
- variant = 'cisco-wrlinux' if variant == 'cisco'
+ if variant == 'cisco_nexus'
+ variant = 'cisco-wrlinux'
+ version = '5'
+ end
+ if variant == 'cisco_ios_xr'
+ variant = 'cisco-wrlinux'
+ version = '7'
+ end
fedora_prefix = ((variant == 'fedora') ? 'f' : '')
+
pattern = "%s-%s%s-%s.repo"
pattern = "repos-pe-#{pattern}" if self.is_pe?
repo_filename << pattern % [
variant,