@@ -112,6 +112,7 @@ def self.latest_package_version(package, disablerepo, enablerepo, disableexclude
112112 # @param disableexcludes [Array<String>] A list of repository excludes to disable for this query
113113 # @return [Hash<String, Array<Hash<String, String>>>] All packages that were
114114 # found with a list of found versions for each package.
115+ # rubocop:disable Layout/SingleLineBlockChain
115116 def self . check_updates ( disablerepo , enablerepo , disableexcludes )
116117 args = [ command ( :cmd ) , 'check-update' ]
117118 args . concat ( disablerepo . map { |repo | [ "--disablerepo=#{ repo } " ] } . flatten )
@@ -131,6 +132,7 @@ def self.check_updates(disablerepo, enablerepo, disableexcludes)
131132 end
132133 updates
133134 end
135+ # rubocop:enable Layout/SingleLineBlockChain
134136
135137 def self . parse_updates ( str )
136138 # Strip off all content that contains Obsoleting, Security: or Update
@@ -231,6 +233,7 @@ def best_version(should)
231233 end
232234 end
233235
236+ # rubocop:disable Layout/SingleLineBlockChain
234237 def available_versions ( package_name , disablerepo , enablerepo , disableexcludes )
235238 args = [ command ( :cmd ) , 'list' , package_name , '--showduplicates' ]
236239 args . concat ( disablerepo . map { |repo | [ "--disablerepo=#{ repo } " ] } . flatten )
@@ -240,6 +243,7 @@ def available_versions(package_name, disablerepo, enablerepo, disableexcludes)
240243 output = execute ( "#{ args . compact . join ( ' ' ) } | sed -e '1,/Available Packages/ d' | awk '{print $2}'" )
241244 output . split ( "\n " )
242245 end
246+ # rubocop:enable Layout/SingleLineBlockChain
243247
244248 def install
245249 wanted = @resource [ :name ]
0 commit comments