@@ -112,6 +112,7 @@ def self.latest_package_version(package, disablerepo, enablerepo, disableexclude
112
112
# @param disableexcludes [Array<String>] A list of repository excludes to disable for this query
113
113
# @return [Hash<String, Array<Hash<String, String>>>] All packages that were
114
114
# found with a list of found versions for each package.
115
+ # rubocop:disable Layout/SingleLineBlockChain
115
116
def self . check_updates ( disablerepo , enablerepo , disableexcludes )
116
117
args = [ command ( :cmd ) , 'check-update' ]
117
118
args . concat ( disablerepo . map { |repo | [ "--disablerepo=#{ repo } " ] } . flatten )
@@ -131,6 +132,7 @@ def self.check_updates(disablerepo, enablerepo, disableexcludes)
131
132
end
132
133
updates
133
134
end
135
+ # rubocop:enable Layout/SingleLineBlockChain
134
136
135
137
def self . parse_updates ( str )
136
138
# Strip off all content that contains Obsoleting, Security: or Update
@@ -231,6 +233,7 @@ def best_version(should)
231
233
end
232
234
end
233
235
236
+ # rubocop:disable Layout/SingleLineBlockChain
234
237
def available_versions ( package_name , disablerepo , enablerepo , disableexcludes )
235
238
args = [ command ( :cmd ) , 'list' , package_name , '--showduplicates' ]
236
239
args . concat ( disablerepo . map { |repo | [ "--disablerepo=#{ repo } " ] } . flatten )
@@ -240,6 +243,7 @@ def available_versions(package_name, disablerepo, enablerepo, disableexcludes)
240
243
output = execute ( "#{ args . compact . join ( ' ' ) } | sed -e '1,/Available Packages/ d' | awk '{print $2}'" )
241
244
output . split ( "\n " )
242
245
end
246
+ # rubocop:enable Layout/SingleLineBlockChain
243
247
244
248
def install
245
249
wanted = @resource [ :name ]
0 commit comments