'Return an existing package based on package manager and package names.'

@classmethod
def from_names(cls, package_manager, name, cursor=None):

    cursor = (cursor or cls.db)
    return cursor.one(u'SELECT    packages.*::packages    FROM    packages    WHERE    package_manager=%s    and    name=%s', (package_manager, name))
