@@ -31,7 +31,7 @@ def self.instances
31
31
begin
32
32
packages = listcmd
33
33
packages . each { |package , value |
34
- if ! package . empty? ( )
34
+ unless package . empty? ( )
35
35
value [ :provider ] = name
36
36
final << new ( value )
37
37
end
@@ -64,7 +64,7 @@ def self.listcmd
64
64
def install
65
65
cmd = [ ]
66
66
67
- full_name = get_full_name ( action = "install" )
67
+ full_name = get_full_name
68
68
69
69
cmd << '-r'
70
70
cmd << install_options
@@ -78,7 +78,7 @@ def install
78
78
end
79
79
end
80
80
81
- def get_full_name ( action = "install" )
81
+ def get_full_name
82
82
# In case of a real update (i.e., the package already exists) then
83
83
# pkg_add(8) can handle the flavors. However, if we're actually
84
84
# installing with 'latest', we do need to handle the flavors. This is
@@ -100,7 +100,6 @@ def get_full_name(action = "install")
100
100
else
101
101
"#{ use_name } --#{ use_branch } "
102
102
end
103
-
104
103
end
105
104
106
105
def query
@@ -120,9 +119,9 @@ def uninstall_options
120
119
121
120
def uninstall ( purge = false )
122
121
if purge
123
- pkgdelete "-c" , "-qq" , uninstall_options . flatten . compact , get_full_name ( action = "uninstall" )
122
+ pkgdelete "-c" , "-qq" , uninstall_options . flatten . compact , get_full_name
124
123
else
125
- pkgdelete uninstall_options . flatten . compact , get_full_name ( action = "uninstall" )
124
+ pkgdelete uninstall_options . flatten . compact , get_full_name
126
125
end
127
126
end
128
127
0 commit comments