lib/specinfra/command/openbsd/base/package.rb in specinfra-2.82.9 vs lib/specinfra/command/openbsd/base/package.rb in specinfra-2.82.10
- old
+ new
@@ -9,7 +9,11 @@
end
def install(package, version=nil, option='')
"pkg_add #{option} #{package}"
end
+
+ def get_version(package, _opts=nil)
+ "pkg_info -I #{package} | sed -e 's/#{package}-//' | cut -d' ' -f1"
+ end
end
end