[Wapt] commande wapt-get dans script py d'un paquet

informatique informatique at challans.fr
Fri Aug 8 14:29:25 CEST 2014


Bonjour,

pour des raisons particulières sur un paquet, je souhaiterais éxécuter une commande "wapt-get remove -f ..." dans le script python d'un paquet.

J'ai mis dans le script :

run(r'wapt-get remove -f chal-fusioninventoryagent')

mais ça me renvoie :

2014-08-08 14:15:33,443 CRITICAL Fatal error in install script: CalledProcessErr
or: Command '('wapt-get remove -f chal-fusioninventoryagent',)' returned non-zer
o exit status 3:Traceback (most recent call last):
  File "C:\wapt\common.py", line 2926, in install_wapt
    exitstatus = setup.install()
  File "c:\users\admini~1\appdata\local\temp\waptnejtfn\setup.py", line 25, in i
nstall
    run(r'wapt-get remove -f chal-fusioninventoryagent')
  File "C:\wapt\common.py", line 2773, in run
    return setuphelpers.run(*arg,pidlist=self.pidlist,**args)
  File "C:\wapt\setuphelpers.py", line 561, in run
    raise subprocess.CalledProcessError(proc.returncode,cmd,''.join(output))
CalledProcessError: Command '('wapt-get remove -f chal-fusioninventoryagent',)'
returned non-zero exit status 3

2014-08-08 14:15:33,489 CRITICAL Package chal-ocsinventoryagent not installed du
e to errors : CalledProcessError: Command '('wapt-get remove -f chal-fusioninven
toryagent',)' returned non-zero exit status 3

Ce que je veux faire n'est pas possible ?
Ou y a t'il une procédure particulière pour éxécuter un wapt-get remove -f dans un script python ?

Merci.

-------------- section suivante --------------
Une pi�ce jointe HTML a �t� nettoy�e...
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20140808/86f7fec1/attachment-0001.html>
-------------- section suivante --------------
Une pi�ce jointe autre que texte a �t� nettoy�e...
Nom: 08082014_142544_0.png
Type: image/png
Taille: 17405 octets
Desc: non disponible
URL: <http://lists.tranquil.it/pipermail/wapt/attachments/20140808/86f7fec1/attachment-0001.png>


More information about the WAPT mailing list