module Polisher::RPM::SpecSubpackages
Public Instance Methods
has_doc_subpkg?()
click to toggle source
Return boolean indicating if spec has a -doc subpkg
# File lib/polisher/rpm/spec/subpackages.rb, line 18 def has_doc_subpkg? @has_doc_subpkg ||= contents.index Spec::SPEC_DOC_SUBPACKAGE_MATCHER end
subpkg_containing(file)
click to toggle source
Return subpkg containing the specified file
# File lib/polisher/rpm/spec/subpackages.rb, line 10 def subpkg_containing(file) pkg_files.each do |pkg, spec_files| return pkg if spec_files.include?(file) end nil end