#NEWLINE# def updating( name , jail = None , chroot = None , filedate = None , filename = None ) : #NEWLINE# #INDENT# "'\n    Displays UPDATING entries of software packages\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' pkg.updating foo\n\n    jail\n        Perform the action in the specified jail\n\n        CLI Example:\n\n        .. code-block:: bash\n\n            salt '*' pkg.updating foo jail=<jail name or id>\n\n    chroot\n        Perform the action in the specified chroot (ignored if ``jail`` is\n        specified)\n\n        CLI Example:\n\n        .. code-block:: bash\n\n            salt '*' pkg.updating foo chroot=/path/to/chroot\n\n    filedate\n        Only entries newer than date are shown. Use a YYYYMMDD date format.\n\n        CLI Example:\n\n        .. code-block:: bash\n\n            salt '*' pkg.updating foo filedate=20130101\n\n    filename\n        Defines an alternative location of the UPDATING file.\n\n        CLI Example:\n\n        .. code-block:: bash\n\n            salt '*' pkg.updating foo filename=/tmp/UPDATING\n    " #NEWLINE# opts = '' #NEWLINE# if filedate : #NEWLINE# #INDENT# opts += 'd {0}' . format ( filedate ) #NEWLINE# #UNINDENT# if filename : #NEWLINE# #INDENT# opts += 'f {0}' . format ( cmd ) #NEWLINE# #UNINDENT# cmd = _pkg ( jail , chroot ) #NEWLINE# cmd . append ( 'updating' ) #NEWLINE# if opts : #NEWLINE# #INDENT# cmd . append ( ( '-' + opts ) ) #NEWLINE# #UNINDENT# cmd . append ( name ) #NEWLINE# return __salt__ [ 'cmd.run' ] ( cmd , output_loglevel = 'trace' , python_shell = False )