Applies the patches.

        :return: Method success.
        :rtype: bool

def apply_patches(self):
        """
        Applies the patches.

        :return: Method success.
        :rtype: bool
        """

        success = True
        for name, patch in sorted(self):
            success = self.apply_patch(patch)
        return success