def METHOD_NAME(args):
    global LOCK
    LOCK = None
    try:
        LOCK = rhnLockfile.Lockfile('/run/mgr-refresh-pkg-extra-tags.pid')
    except rhnLockfile.LockfileLockedException:
        systemExit(1, 'ERROR: attempting to run more than one instance of '
                      'mgr-refresh-pkg-metadata Exiting.')
    initCFG('server.satellite')
    initCFG('server.susemanager')
    rhnSQL.initDB()
    refresh = MetadataRefresh(args.verbose)
    refresh.refresh_db()
    refresh.regenerate_metadata()