Skip to content

Commit a5a7f1c

Browse files
committed
(fixup) Apply suggestions on PR
1 parent 5e6faed commit a5a7f1c

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

lib/puppet/provider/package/xbps.rb

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
require_relative "../../../puppet/provider/package"
2-
require "set"
3-
require "uri"
42

53
Puppet::Type.type(:package).provide :xbps, :parent => Puppet::Provider::Package do
64
desc "Support for the Package Manager Utility (xbps) used in VoidLinux.
@@ -13,8 +11,8 @@
1311
commands :xbps_query => "/usr/bin/xbps-query"
1412
commands :xbps_pkgdb => "/usr/bin/xbps-pkgdb"
1513

16-
confine :operatingsystem => [:void]
17-
defaultfor :operatingsystem => [:void]
14+
confine 'os.name' => :void
15+
defaultfor 'os.name' => :void
1816
has_feature :install_options, :uninstall_options, :upgradeable, :holdable, :virtual_packages
1917

2018
def self.defaultto_allow_virtual

locales/puppet.pot

-8
Original file line numberDiff line numberDiff line change
@@ -6725,14 +6725,6 @@ msgstr ""
67256725
msgid "Don't know how to install '%{source}'"
67266726
msgstr ""
67276727

6728-
#: ../lib/puppet/provider/package/xbps.rb:36
6729-
msgid "Failed to match line '%{line}"
6730-
msgstr ""
6731-
6732-
#: ../lib/puppet/provider/package/xbps.rb:43
6733-
msgid "Error getting installed packages"
6734-
msgstr ""
6735-
67366728
#: ../lib/puppet/provider/package/yum.rb:70
67376729
msgid "The yum provider can only be used as root"
67386730
msgstr ""

0 commit comments

Comments
 (0)