def METHOD_NAME(self, archq):
    res = packagequery.cmp(int(self.epoch()), int(archq.epoch()))
    if res != 0:
        return res
    res = ArchQuery.rpmvercmp(self.version(), archq.version())
    if res != 0:
        return res
    res = ArchQuery.rpmvercmp(self.release(), archq.release())
    return res