8221668 Properly handle the exception on missing files (bz1574509)

Authored and Committed by tmz 6 years ago
    Properly handle the exception on missing files (bz1574509)
    
    On installs where documentation or additional languages are not
    installed, rpmlint fails while attempting to iterate over the file list.
    The files are only opened for their 'magic numbers' which is used in a
    few tests in BinariesCheck and SourceCheck.
    
    Fedora container images sets nodocs and '%_install_langs en_US' (which
    causes locale files not to be installed).  Running rpmlint in such a
    container results in a traceback when rpmlint attempts to check the
    packages files.
    
    Backport patch from upstream to fix the issue.
    
    Resolves: https://bugzilla.redhat.com/1574509
    Source: https://github.com/rpm-software-management/rpmlint/commit/d59bc2a
    
        
file modified
+7 -1