'Check if a particular object is present by SHA1 and is packed.
This does not check alternates.'

def contains_packed(self, sha):

    for pack in self.packs:
        if (sha in pack):
            return True
    return False
