??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
 Udac@`sddlmZmZmZeZidd6dgd6dd6ZdZd Zd Z dd l Z dd l m Z d Z ddZdZdZdZdZdZdZedkrend S(i(tabsolute_importtdivisiontprint_functions1.1tmetadata_versiontpreviewtstatust communityt supported_bysg --- module: xbps short_description: Manage packages with XBPS description: - Manage packages with the XBPS package manager. author: - "Dino Occhialini (@dinoocch)" - "Michael Aldridge (@the-maldridge)" version_added: "2.3" options: name: description: - Name of the package to install, upgrade, or remove. state: description: - Desired state of the package. default: "present" choices: ["present", "absent", "latest"] recurse: description: - When removing a package, also remove its dependencies, provided that they are not required by other packages and were not explicitly installed by a user. type: bool default: 'no' update_cache: description: - Whether or not to refresh the master package lists. This can be run as part of a package installation or as a separate step. type: bool default: 'yes' upgrade: description: - Whether or not to upgrade whole system type: bool default: 'no' s] # Install package foo - xbps: name=foo state=present # Upgrade package foo - xbps: name=foo state=latest update_cache=yes # Remove packages foo and bar - xbps: name=foo,bar state=absent # Recursively remove package foo - xbps: name=foo state=absent recurse=yes # Update package cache - xbps: update_cache=yes # Upgrade packages - xbps: upgrade=yes s msg: description: Message about results returned: success type: str sample: "System Upgraded" packages: description: Packages that are affected/would be affected type: list sample: ["ansible"] returned: success N(t AnsibleModulecC`stt|S(sReturns package install state(tbooltlen(t xbps_output((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/xbps.pyt is_installedZstpresentc C`s|dkrd|d|f}|j|dt\}}}t|sTttfSd|d}|j|dt\} } } | dks| dkrt|| kfSttfSd S( sReturns Package infoR s%s %stquerytcheck_rcs%s -SuntinstalliiN(t run_commandtFalseR tTrue( tmodulet xbps_pathtnametstatetlcmdtlrctlstdouttlstderrtrcmdtrrctrstdouttrstderr((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/xbps.pyt query_package_s   cC`scd|d}|j|dt\}}}|dkrK|jddnd|kr[tStSdS( s)Returns True if update_package_db changeds%s -SRRitmsgsCould not update package dbsavg rateN(RRt fail_jsonR(RRtcmdtrctstdouttstderr((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/xbps.pytupdate_package_dbss  cC`sd|d}d|d}|j|dt\}}}|dkrt|jdkrw|jdtddq|j|dt\}}}|dkr|jdtdd q|jdd n|jdd d S( s%Returns true is full upgrade succeedss%s -uyRs%s -unRitchangedR!sNothing to upgradesSystem upgradedsCould not upgradeN(RRR t splitlinest exit_jsonRR"(RRt cmdupgradetcmdneedupgradeR$R%R&((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/xbps.pytupgrades  c C`sg}x|D]}t|||\}}|s7q nd|d|f}|j|dt\}} } |dkr|jdd|n|j|q Wt|dkr|jdtddt|d |n|jdtdd d S( s(Returns true if package removal succeedss%s -y %stremoveRiR!sfailed to remove %sR(sremoved %s package(s)tpackagesspackage(s) already absentN(R RRR"tappendR R*R( RRR/tchanged_packagestpackaget installedtupdatedR#R$R%R&((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/xbps.pytremove_packagess  c C`sZg}xit|D][\}}t|||\}}|ra|dks|dkra|raqn|j|qWt|dkr|jdtddnd|dd j|f} |j| d t\} } } | dkr|dko| d k r|jdd |n|jdt dd t|d||jdtdddgdS(s)Returns true if package install succeeds.R tlatestiR(R!sNothing to Installs%s -y %sRt Risfailed to install %ssinstalled %s package(s)R/spackage(s) already installedN( t enumerateR R0R R*RtjoinRR"R( RRRR/t toInstalltiR2R3R4R#R$R%R&((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/xbps.pytinstall_packagess$% cC`sg}xn|D]f}t|||\}}|d kr>| sc|dkrP|sc|dkr | r |j|q q W|r|dkrd}n|jdtddt||fd|n |jdtdd |dgd S( s Returns change status of commandR R6tabsenttremovedR(R!s%s package(s) would be %sR/spackage(s) already %sN(spresentslatest(R R0R*RR R(RRR/Rtwould_be_changedR2R3R4((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/xbps.pytcheck_packagess    cC`stdtdtdd$dddgddd tdd d d d d ddgdtdtdddtdtdddtdtdddtdtddgddddddggdt}t}|jdt|d<|jdt|d<|jdt|dtrecurseR tforceR-t update_caches update-cachetrequired_one_oftsupports_check_modes xbps-installRs xbps-queryRs xbps-removeR.R!scannot find xbps, in path %sR(s Updated the package master listssPackage list already up to dates$Would have updated the package cacheN(spresents installed(sabsentsremoved(spresentslatest(RtdicttNoneRRt get_bin_pathtostpathtexistsR"tparamst check_modeR'R*R-R@R<R5(RRtpR(tpkgs((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/xbps.pytmains^!               t__main__(t __future__RRRREt __metaclass__tANSIBLE_METADATAt DOCUMENTATIONtEXAMPLEStRETURNRPtansible.module_utils.basicRR R R'R-R5R<R@RWt__name__(((sE/usr/lib/python2.7/site-packages/ansible/modules/packaging/os/xbps.pyts&   (         A