Method: Gonzui::RPMAptGet#find_srpm_file
- Defined in:
- lib/gonzui/apt.rb
#find_srpm_file ⇒ Object
170 171 172 173 174 175 176 177 178 179 |
# File 'lib/gonzui/apt.rb', line 170 def find_srpm_file entries = Dir.entries_without_dots(self.temporary_directory) raise AptGetError.new("#{@package_name}: download failed") if entries.length != 1 candidate = entries.first raise AptGetError.new("#{@package_name}: SRPM not found") unless srpm_file?(candidate) return File.join(self.temporary_directory, candidate) end |