sign_xpi_lib/sign_xpi_lib.py
def ignore_certain_metainf_files(filename):
    """
    We do not support multiple signatures in XPI signing because the client
    side code makes some pretty reasonable assumptions about a single signature
    on any given JAR.  This function returns True if the file name given is one
    that we dispose of to prevent multiple signatures.
    """
    ignore = ("META-INF/manifest.mf",
              "META-INF/*.sf",
              "META-INF/*.rsa",
              "META-INF/*.dsa",
              "META-INF/ids.json")

    for glob in ignore:
        # Explicitly match against all upper case to prevent the kind of
        # runtime errors that lead to https://bugzil.la/1169574
        if fnmatch.fnmatchcase(filename.upper(), glob.upper()):
            return True
    return False
def ignore_certain_metainf_files(filename):
    ignore = ("META-INF/manifest.mf",
              "META-INF/*.sf",
              "META-INF/*.rsa",
              "META-INF/*.dsa",
              "META-INF/ids.json")

    for glob in ignore:
        # Explicitly match against all upper case to prevent the kind of
        # runtime errors that lead to https://bugzil.la/1169574
        if fnmatch.fnmatchcase(filename.upper(), glob.upper()):
            return True
    return False
def ignore_certain_metainf_files ( filename ) : ignore = ( "META-INF/manifest.mf" , "META-INF/*.sf" , "META-INF/*.rsa" , "META-INF/*.dsa" , "META-INF/ids.json" ) for glob in ignore : # Explicitly match against all upper case to prevent the kind of # runtime errors that lead to https://bugzil.la/1169574 if fnmatch . fnmatchcase ( filename . upper ( ) , glob . upper ( ) ) : return True return False
We do not support multiple signatures in XPI signing because the client
    side code makes some pretty reasonable assumptions about a single signature
    on any given JAR.  This function returns True if the file name given is one
    that we dispose of to prevent multiple signatures.
We do not support multiple signatures in XPI signing because the client side code makes some pretty reasonable assumptions about a single signature on any given JAR . This function returns True if the file name given is one that we dispose of to prevent multiple signatures .