def METHOD_NAME(self):
    out = ""
    removed = []
    installed = []
    updated = []
    misc = []
    for (pkgInfo, mode) in self.data['packages']:
        if mode == 'u':
            updated.append(pkgInfo)
        elif mode == 'i':
            installed.append(pkgInfo)
        elif mode == 'e':
            removed.append(pkgInfo)
        else:
            misc.append(pkgInfo)
    for pkgInfo in removed:
        out = out + "\t\t[e] %s-%s-%s:%s\n" % (pkgInfo[0], pkgInfo[1], pkgInfo[2], pkgInfo[3])
    for pkgInfo in installed:
        out = out + "\t\t[i] %s-%s-%s:%s\n" % (pkgInfo[0], pkgInfo[1], pkgInfo[2], pkgInfo[3])
    for pkgInfo in updated:
        out = out + "\t\t[u] %s-%s-%s:%s\n" % (pkgInfo[0], pkgInfo[1], pkgInfo[2], pkgInfo[3])
    for pkgInfo in misc:
        out = out + "\t\t[%s] %s-%s-%s:%s\n" % (pkgInfo[5], pkgInfo[0], pkgInfo[1],
                                                pkgInfo[2], pkgInfo[3])
    return out