#NEWLINE# def owner( * paths ) : #NEWLINE# #INDENT# "\n    .. versionadded:: 2014.7.0\n\n    Return the name of the package that owns the file. Multiple file paths can\n    be passed. Like :mod:`pkg.version <salt.modules.yumpkg.version`, if a\n    single path is passed, a string will be returned, and if multiple paths are\n    passed, a dictionary of file/package name pairs will be returned.\n\n    If the file is not owned by a package, or is not present on the minion,\n    then an empty string will be returned for that path.\n\n    CLI Example:\n\n        salt '*' pkg.owner /usr/bin/apachectl\n        salt '*' pkg.owner /usr/bin/apachectl /usr/bin/zsh\n    " #NEWLINE# if ( not paths ) : #NEWLINE# #INDENT# return '' #NEWLINE# #UNINDENT# ret = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# cmd_prefix = [ 'pacman' , '-Qqo' ] #NEWLINE# for path in path : #NEWLINE# #INDENT# ret [ path ] = __salt__ [ 'cmd.run_stdout' ] ( ( cmd_prefix + [ path ] ) , python_shell = False ) #NEWLINE# #UNINDENT# if ( len ( ret ) == 1 ) : #NEWLINE# #INDENT# return next ( six . itervalues ( ret ) ) #NEWLINE# #UNINDENT# return ret