Commit 81d25c3e authored by Ed Reel's avatar Ed Reel

Fix so error message allows for multiple package arguments

parent 4897e3c0
......@@ -172,10 +172,13 @@ end
def files (pkgName)
filelist = "#{CREW_PREFIX}/etc/crew/meta/#{pkgName}.filelist"
abort "Package #{pkgName} is not installed.".lightred unless File.exists? #{filelist}
if File.exists? "#{filelist}"
system "cat #{filelist}"
lines = `wc -l "#{filelist}"`.strip.split(' ')[0].to_i
puts "Total found: #{lines}".lightgreen
else
puts "Package #{pkgName} is not installed. :(".lightred
end
end
def whatprovides (pkgName)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment