| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/ |
Upload File : |
o
;j� � @ sD d Z ddlZddlmZmZ dd� Zdd� Zd
d d
�Zddd�Z dS )a-
Installation of Cabal Packages
==============================
.. versionadded:: 2015.8.0
These states manage the installed packages for Haskell using
cabal. Note that cabal-install must be installed for these states to
be available, so cabal states should include a requisite to a
pkg.installed state for the package which provides cabal
(``cabal-install`` in case of Debian based distributions). Example::
.. code-block:: yaml
cabal-install:
pkg.installed
ShellCheck:
cabal.installed:
- require:
- pkg: cabal-install
� N)�CommandExecutionError�CommandNotFoundErrorc C s, t jj�d�durt jj�d�durdS dS )z4
Only work when cabal-install is installed.
ZcabalNzghc-pkgT)Fz#cabal or ghc-pkg commands not found)�salt�utils�path�which� r r �E/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/cabal.py�__virtual__ s r
c C s"