'update m and add new aliases if necessary
change updated attribute so we don\'t overwrite this in the future'

def updatemanpage(self, m):

    logger.info('updating    manpage    %s', m.source)
    m.updated = True
    self.manpage.update({'source': m.source}, m.to_store())
    _id = self.manpage.find_one({'source': m.source}, fields={'_id': 1})['_id']
    for (alias, score) in m.aliases:
        if (alias not in self):
            self.addmapping(alias, _id, score)
            logger.info('inserting    mapping    (alias)    %s    ->    %s    (%s)    with    score    %d', alias, m.name, _id, score)
        else:
            logger.debug('mapping    (alias)    %s    ->    %s    (%s)    already    exists', alias, m.name, _id)
    return m
