Recognize rpm file magic

This commit is contained in:
Jack Nagel 2014-12-09 01:22:55 -05:00
parent 30f346447c
commit 1a69ceaf7e

View File

@ -241,6 +241,7 @@ class Pathname
when /^Rar!/n then :rar
when /^7z\xBC\xAF\x27\x1C/n then :p7zip
when /^xar!/n then :xar
when /^\xed\xab\xee\xdb/n then :rpm
else
# This code so that bad-tarballs and zips produce good error messages
# when they don't unarchive properly.