def runrefreshrepo(module, auto_import_keys=False, shortname=None):
 if auto_import_keys:
  cmd = _get_cmd('--gpg-auto-import-keys', 'refresh', '--force')
 else:
  cmd = _get_cmd('refresh', '--force')
 if (shortname is not None):
  cmd.extend(['-r', shortname])
 (rc, stdout, stderr) = module.run_command(cmd, check_rc=True)
 return (rc, stdout, stderr)

def runrefreshrepo ( module , auto_import_keys = False , shortname = None ) : if auto_import_keys : cmd = _get_cmd ( '--gpg-auto-import-keys' , 'refresh' , '--force' ) else : cmd = _get_cmd ( 'refresh' , '--force' ) if ( shortname is not None ) : cmd . extend ( [ '-r' , shortname ] ) ( rc , stdout , stderr ) = module . run_command ( cmd , check_rc = True ) return ( rc , stdout , stderr )
forces zypper to refresh repo metadata .