Module Expr Str ImportFrom alias alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias identifier Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str FunctionDef arguments args defaults body Expr Str If CompareIn Call AttributeLoad NameLoad attr Str NameLoad TupleLoad Str Str body Return NameLoad Return TupleLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str If CompareIs NameLoad NameLoad body Return NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad NameLoad AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str If CompareIs NameLoad NameLoad body Return NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq NameLoad Str body AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str TupleLoad Str Str Str Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Str body AugAssignAdd NameStore Call AttributeLoad Str attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num If CompareEq NameLoad Str body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Return TupleLoad NameLoad NameLoad If UnaryOpNot Call NameLoad NameLoad NameLoad body Raise Call NameLoad Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad NameLoad body If CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Str body Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad If CompareNotEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Str body AugAssignAdd NameStore Call AttributeLoad Str attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num NameLoad orelse AugAssignAdd NameStore Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr For NameStore NameLoad body If BoolOpAnd CompareIn NameLoad NameLoad CompareEq SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num Str CompareNotIn NameLoad NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Num If CompareEq NameLoad Str body Assign NameStore NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str Assign NameStore Call NameLoad NameLoad If BoolOpAnd NameLoad UnaryOpNot Call AttributeLoad NameLoad attr body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return Call SubscriptLoad NameLoad Index Str NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call SubscriptLoad NameLoad Index Str NameLoad NameLoad keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Str body Expr Str Expr Call NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore ListLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str For NameStore NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad If Call AttributeLoad NameLoad attr Str body For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad Assign NameStore NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body If BoolOpAnd Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str body Assign NameStore NameLoad Break orelse Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd BinOpAdd SubscriptLoad NameLoad Slice NameLoad Str SubscriptLoad NameLoad Slice BinOpAdd NameLoad Num AugAssignAdd NameStore Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad Assign NameStore Str Expr Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str body Expr Str Assign NameStore Dict TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Return NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr TryFinally body TryExcept body Expr Call SubscriptLoad NameLoad Index Str Call AttributeLoad Str attr NameLoad NameLoad Expr Call SubscriptLoad NameLoad Index Str Call AttributeLoad Str attr NameLoad NameLoad Assign NameStore Str Expr Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad keyword NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str ListLoad attr NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad If CompareIsNot NameLoad NameLoad body With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad Str attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad Str attr NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad decorator_list
N/A N/A 
Debian Package builder system

.. versionadded:: 2015.8.0

This system allows for all of the components to build debs safely in chrooted
environments. This also provides a function to generate debian repositories

This module impliments the pkgbuild interface
 __future__ absolute_import print_function N/A errno N/A logging N/A os N/A tempfile N/A shutil N/A salt.utils salt.exceptions SaltInvocationError salt.ext.six.moves.urllib.parse urlparse _urlparse N/A log N/A N/A logging getLogger __name__ N/A __virtualname__ pkgbuild __virtual__ N/A N/A N/A N/A N/A 
    Confirm this module is on a Debian based system
     N/A N/A N/A N/A __grains__ get os_family False N/A Kali Debian N/A N/A __virtualname__ N/A N/A False The debbuild module could not be loaded: unsupported OS family N/A _get_build_env N/A N/A env N/A N/A N/A 
    Get build environment overrides dictionary to use in build process
     N/A env_override N/A N/A env None N/A N/A env_override N/A N/A N/A isinstance env dict N/A N/A N/A SaltInvocationError 'env' must be a Python dictionary N/A N/A key value N/A N/A env items N/A N/A env_override N/A N/A {0}={1}
 format key value N/A env_override N/A N/A export {0}
 format key N/A env_override N/A _get_repo_options_env N/A N/A env N/A N/A N/A 
    Get repo environment overrides dictionary to use in repo options process

    env
        A dictionary of variables to define the repository options
        Example:

        .. code-block:: yaml

                - env:
                  - OPTIONS : 'ask-passphrase'

        .. warning::

            The above illustrates a common PyYAML pitfall, that **yes**,
            **no**, **on**, **off**, **true**, and **false** are all loaded as
            boolean ``True`` and ``False`` values, and must be enclosed in
            quotes to be used as strings. More info on this (and other) PyYAML
            idiosyncrasies can be found :doc:`here
            </topics/troubleshooting/yaml_idiosyncrasies>`.

     N/A env_options N/A N/A env None N/A N/A env_options N/A N/A N/A isinstance env dict N/A N/A N/A SaltInvocationError 'env' must be a Python dictionary N/A N/A key value N/A N/A env items N/A N/A N/A key OPTIONS N/A N/A env_options N/A N/A {0}
 format value N/A env_options N/A _get_repo_dists_env N/A N/A env N/A N/A N/A 
    Get repo environment overrides dictionary to use in repo distributions process

    env
        A dictionary of variables to define the repository distributions
        Example:

        .. code-block:: yaml

                - env:
                  - ORIGIN : 'jessie'
                  - LABEL : 'salt debian'
                  - SUITE : 'main'
                  - VERSION : '8.1'
                  - CODENAME : 'jessie'
                  - ARCHS : 'amd64 i386 source'
                  - COMPONENTS : 'main'
                  - DESCRIPTION : 'SaltStack Debian package repo'

        .. warning::

            The above illustrates a common PyYAML pitfall, that **yes**,
            **no**, **on**, **off**, **true**, and **false** are all loaded as
            boolean ``True`` and ``False`` values, and must be enclosed in
            quotes to be used as strings. More info on this (and other) PyYAML
            idiosyncrasies can be found :doc:`here
            </topics/troubleshooting/yaml_idiosyncrasies>`.

     N/A dflts_dict N/A OPTIONS ORIGIN LABEL SUITE VERSION CODENAME ARCHS COMPONENTS DESCRIPTION N/A I processed by _get_repo_options_env N/A O Origin SaltStack N/A O Label salt_debian N/A O Suite stable N/A O Version 8.1 N/A M Codename jessie N/A M Architectures i386 amd64 source N/A M Components main N/A O Description SaltStack debian package repo N/A env_dists N/A codename N/A dflts_keys N/A list N/A N/A dflts_dict keys N/A N/A env None N/A N/A N/A key value N/A N/A dflts_dict items N/A N/A N/A N/A N/A dflts_dict N/A key N/A 0 M N/A N/A env_dists N/A N/A {0}: {1}
 format N/A N/A dflts_dict N/A key N/A 1 N/A N/A dflts_dict N/A key N/A 2 N/A N/A key CODENAME N/A N/A codename N/A N/A dflts_dict N/A key N/A 2 N/A N/A codename env_dists N/A N/A N/A isinstance env dict N/A N/A N/A SaltInvocationError 'env' must be a Python dictionary N/A env_man_seen N/A N/A N/A key value N/A N/A env items N/A N/A N/A key dflts_keys N/A N/A N/A N/A N/A dflts_dict N/A key N/A 0 M N/A N/A N/A N/A env_man_seen append key N/A N/A key CODENAME N/A N/A codename value N/A N/A N/A N/A dflts_dict N/A key N/A 0 I N/A N/A env_dists N/A N/A {0}: {1}
 format N/A N/A dflts_dict N/A key N/A 1 value N/A N/A env_dists N/A N/A {0}: {1}
 format key value N/A env_keys N/A list N/A N/A env keys N/A key env_keys N/A N/A N/A N/A key dflts_keys N/A N/A N/A dflts_dict N/A key N/A 0 M N/A key env_man_seen N/A N/A env_dists N/A N/A {0}: {1}
 format N/A N/A dflts_dict N/A key N/A 1 N/A N/A dflts_dict N/A key N/A 2 N/A N/A key CODENAME N/A N/A codename value N/A N/A codename env_dists N/A _create_pbuilders N/A N/A env N/A N/A N/A 
    Create the .pbuilder family of files in user's home directory

    env
        A list  or dictionary of environment variables to be set prior to execution.
        Example:

        .. code-block:: yaml

                - env:
                  - DEB_BUILD_OPTIONS: 'nocheck'

        .. warning::

            The above illustrates a common PyYAML pitfall, that **yes**,
            **no**, **on**, **off**, **true**, and **false** are all loaded as
            boolean ``True`` and ``False`` values, and must be enclosed in
            quotes to be used as strings. More info on this (and other) PyYAML
            idiosyncrasies can be found :doc:`here
            </topics/troubleshooting/yaml_idiosyncrasies>`.

     N/A home N/A N/A N/A os path expanduser ~ N/A pbuilderrc N/A N/A N/A os path join home .pbuilderrc N/A N/A N/A N/A N/A os path isfile pbuilderrc N/A N/A N/A SaltInvocationError pbuilderrc environment is incorrectly setup N/A env_overrides N/A _get_build_env env N/A N/A env_overrides N/A N/A N/A env_overrides isspace N/A N/A N/A N/A N/A salt utils fopen pbuilderrc a fow N/A N/A N/A N/A fow write N/A N/A {0} format env_overrides N/A _mk_tree N/A N/A N/A N/A N/A 
    Create the debian build area
     N/A basedir N/A N/A tempfile mkdtemp N/A basedir N/A _get_spec N/A N/A tree_base spec template saltenv N/A base N/A N/A 
    Get the spec file (tarball of the debian sub-dir to use)
    and place it in build area

     N/A spec_tgt N/A N/A N/A os path basename spec N/A dest N/A N/A N/A os path join tree_base spec_tgt N/A N/A N/A __salt__ N/A cp.get_url spec dest saltenv saltenv N/A _get_src N/A N/A tree_base source saltenv N/A base N/A N/A 
    Get the named sources and place them into the tree_base
     N/A parsed N/A _urlparse source N/A sbase N/A N/A N/A os path basename source N/A dest N/A N/A N/A os path join tree_base sbase N/A N/A parsed scheme N/A N/A N/A N/A __salt__ N/A cp.get_url source dest saltenv saltenv N/A N/A N/A N/A shutil copy source dest N/A make_src_pkg N/A N/A dest_dir spec sources env template saltenv N/A None None base N/A N/A 
    Create a platform specific source package from the given platform spec/control file and sources

    CLI Example:

    Debian
        salt '*' pkgbuild.make_src_pkg /var/www/html/ https://raw.githubusercontent.com/saltstack/libnacl/master/pkg/deb/python-libnacl.control.tar.xz https://pypi.python.org/packages/source/l/libnacl/libnacl-1.3.5.tar.gz

    This example command should build the libnacl SOURCE package and place it in
    /var/www/html/ on the minion
     N/A N/A _create_pbuilders env N/A tree_base N/A _mk_tree N/A ret N/A N/A N/A N/A N/A N/A os path isdir dest_dir N/A N/A N/A N/A os makedirs dest_dir N/A spec_pathfile N/A _get_spec tree_base spec template saltenv N/A N/A isinstance sources str N/A N/A sources N/A N/A sources split , N/A src sources N/A N/A N/A _get_src tree_base src saltenv N/A N/A N/A spec_pathfile endswith .dsc N/A N/A efile N/A N/A os listdir tree_base N/A N/A full N/A N/A N/A os path join tree_base efile N/A trgt N/A N/A N/A os path join dest_dir efile N/A N/A N/A shutil copy full trgt N/A N/A N/A ret append trgt N/A trgt N/A N/A N/A os path join dest_dir N/A N/A N/A os path basename spec_pathfile N/A N/A N/A shutil copy spec_pathfile trgt N/A N/A N/A ret append trgt N/A ret N/A salttarball None N/A afile N/A N/A os listdir tree_base N/A N/A N/A N/A N/A afile startswith salt- N/A N/A afile endswith .tar.gz N/A N/A salttarball afile N/A N/A N/A ret N/A frontname N/A N/A salttarball split .tar.gz N/A salttar_name N/A frontname N/A 0 N/A k N/A N/A salttar_name rfind - N/A debname N/A N/A N/A salttar_name N/A k _ N/A salttar_name N/A N/A k 1 N/A debname +ds N/A debname_orig N/A debname .orig.tar.gz N/A abspath_debname N/A N/A N/A os path join tree_base debname N/A cmd N/A N/A tar -xvzf {0} format salttarball N/A N/A N/A __salt__ N/A cmd.run cmd cwd tree_base N/A cmd N/A N/A mv {0} {1} format salttar_name debname N/A N/A N/A __salt__ N/A cmd.run cmd cwd tree_base N/A cmd N/A N/A tar -cvzf {0} {1} format N/A N/A N/A os path join tree_base debname_orig debname N/A N/A N/A __salt__ N/A cmd.run cmd cwd tree_base N/A cmd N/A N/A rm -f {0} format salttarball N/A N/A N/A __salt__ N/A cmd.run cmd cwd tree_base N/A cmd N/A N/A cp {0}  {1} format spec_pathfile abspath_debname N/A N/A N/A __salt__ N/A cmd.run cmd cwd abspath_debname N/A cmd N/A N/A tar -xvJf {0} format spec_pathfile N/A N/A N/A __salt__ N/A cmd.run cmd cwd abspath_debname N/A cmd N/A N/A rm -f {0} format N/A N/A N/A os path basename spec_pathfile N/A N/A N/A __salt__ N/A cmd.run cmd cwd abspath_debname N/A cmd debuild -S -uc -us N/A N/A N/A __salt__ N/A cmd.run cmd cwd abspath_debname python_shell True N/A cmd N/A N/A rm -fR {0} format abspath_debname N/A N/A N/A __salt__ N/A cmd.run cmd N/A dfile N/A N/A os listdir tree_base N/A N/A N/A N/A N/A dfile endswith .build N/A N/A full N/A N/A N/A os path join tree_base dfile N/A trgt N/A N/A N/A os path join dest_dir dfile N/A N/A N/A shutil copy full trgt N/A N/A N/A ret append trgt N/A ret N/A build N/A N/A runas tgt dest_dir spec sources deps env template saltenv log_dir N/A base /var/log/salt/pkgbuild N/A N/A 
    Given the package destination directory, the tarball containing debian files (e.g. control)
    and package sources, use pbuilder to safely build the platform package

    CLI Example:

    Debian
        salt '*' pkgbuild.make_src_pkg deb-8-x86_64 /var/www/html https://raw.githubusercontent.com/saltstack/libnacl/master/pkg/deb/python-libnacl.control https://pypi.python.org/packages/source/l/libnacl/libnacl-1.3.5.tar.gz

    This example command should build the libnacl package for Debian using pbuilder
    and place it in /var/www/html/ on the minion
     N/A ret N/A N/A N/A N/A N/A N/A os makedirs dest_dir N/A N/A N/A OSError N/A exc N/A N/A N/A N/A exc errno N/A errno EEXIST N/A N/A N/A dsc_dir N/A N/A tempfile mkdtemp N/A N/A N/A dscs N/A make_src_pkg dsc_dir spec sources env template saltenv N/A N/A N/A Exception N/A exc N/A N/A N/A N/A shutil rmtree dsc_dir N/A N/A N/A log error Failed to make src package N/A ret N/A dsc dscs N/A N/A afile N/A N/A N/A os path basename dsc N/A adist N/A N/A N/A os path join dest_dir afile N/A N/A N/A shutil copy dsc adist N/A N/A N/A dsc endswith .dsc N/A N/A dbase N/A N/A N/A os path dirname dsc N/A results_dir N/A N/A tempfile mkdtemp N/A N/A N/A N/A N/A N/A N/A __salt__ N/A cmd.run N/A N/A chown {0} -R {1} format runas dbase N/A N/A N/A __salt__ N/A cmd.run N/A N/A chown {0} -R {1} format runas results_dir N/A cmd pbuilder --create N/A N/A N/A __salt__ N/A cmd.run cmd runas runas python_shell True N/A cmd N/A N/A pbuilder --build --buildresult {1} {0} format dsc results_dir N/A N/A N/A __salt__ N/A cmd.run cmd runas runas python_shell True N/A bfile N/A N/A os listdir results_dir N/A N/A full N/A N/A N/A os path join results_dir bfile N/A bdist N/A N/A N/A os path join dest_dir bfile N/A N/A N/A shutil copy full bdist N/A N/A N/A N/A N/A ret setdefault Packages N/A append bdist N/A N/A N/A Exception N/A exc N/A N/A N/A N/A log error N/A N/A Error building from {0}: {1} format dsc exc N/A N/A N/A N/A shutil rmtree results_dir N/A N/A N/A shutil rmtree dsc_dir N/A ret N/A make_repo N/A N/A repodir keyid env N/A None None N/A N/A 
    Given the repodir, create a Debian repository out of the dsc therein

    CLI Example::

        salt '*' pkgbuild.make_repo /var/www/html/
     N/A repoconf N/A N/A N/A os path join repodir conf N/A N/A N/A N/A N/A os path isdir repoconf N/A N/A N/A N/A os makedirs repoconf N/A N/A codename repocfg_dists N/A _get_repo_dists_env env N/A repoconfdist N/A N/A N/A os path join repoconf distributions N/A N/A N/A N/A salt utils fopen repoconfdist w fow N/A N/A N/A N/A fow write N/A N/A {0} format repocfg_dists N/A N/A keyid None N/A N/A N/A N/A N/A salt utils fopen repoconfdist a fow N/A N/A N/A N/A fow write N/A N/A SignWith: {0}
 format keyid N/A repocfg_opts N/A _get_repo_options_env env N/A repoconfopts N/A N/A N/A os path join repoconf options N/A N/A N/A N/A salt utils fopen repoconfopts w fow N/A N/A N/A N/A fow write N/A N/A {0} format repocfg_opts N/A debfile N/A N/A os listdir repodir N/A N/A N/A N/A debfile endswith .changes N/A N/A cmd N/A N/A reprepro -Vb . include {0} {1} format codename N/A N/A N/A os path join repodir debfile N/A N/A N/A __salt__ N/A cmd.run cmd cwd repodir N/A N/A N/A debfile endswith .deb N/A N/A cmd N/A N/A reprepro -Vb . includedeb {0} {1} format codename N/A N/A N/A os path join repodir debfile N/A N/A N/A __salt__ N/A cmd.run cmd cwd repodir N/A