Tâche #20088
Scénario #19810: Traitement express MEN (13-15)
L'option "-s" de apt-eole install n'est pas fonctionnelle
Remaining (hours):
0.0
Description
root@hapy:~# apt-eole -d -s install nmap apt-eole - install() got an unexpected keyword argument 'simulate' Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 463, in apt_cli **func_args) TypeError: install() got an unexpected keyword argument 'simulate'
NB : ajouter un test de non régression dans SC-T03b.
Associated revisions
apt-eole : support de l'option -s pour install et remove
Ref: #20088
History
#1 Updated by Joël Cuissinat over 6 years ago
- Description updated (diff)
#2 Updated by Joël Cuissinat over 6 years ago
- Status changed from Nouveau to En cours
- Assigned To set to Joël Cuissinat
#3 Updated by Joël Cuissinat over 6 years ago
- /usr/lib/python2.7/dist-packages/pyeole/pkg.py +1334 => def install(self, packages, container=None, silent=False, simulate=False):
- /usr/lib/python2.7/dist-packages/pyeole/pkg.py +1349 => return self._run(action=action, [ ... ], simulate=simulate)
- /usr/lib/python2.7/dist-packages/pyeole/pkg.py +1051 => def install(self, packages, silent=False, simulate=False):
- /usr/lib/python2.7/dist-packages/pyeole/pkg.py +1060 => return self._apply_to_package(u'install', [ ... ], simulate=simulate)
- /usr/lib/python2.7/dist-packages/pyeole/pkg.py +1016 => def _apply_to_package(self, action, packages, silent=False, simulate=False):
- /usr/lib/python2.7/dist-packages/pyeole/pkg.py +1045 :
args = [action] if simulate: args.insert(0, '-s') self._prepare_cache() code = _run_apt_get(args + apply_to, silent=silent) self._umount_cdrom() return code
#4 Updated by Joël Cuissinat over 6 years ago
Au passage, l'option n'est pas non plus fonctionnelle avec remove :
oot@amon:~# apt-eole -d -s remove nmap remove apt-eole - remove() got an unexpected keyword argument 'simulate' Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 464, in apt_cli **func_args) TypeError: remove() got an unexpected keyword argument 'simulate'
Cependant, l'empilage doit être proche de celui précédemment présenté !
#5 Updated by Joël Cuissinat over 6 years ago
- % Done changed from 0 to 100
- Remaining (hours) changed from 3.0 to 0.25
Ajout du test de validation : SC-T03b-003 - apt-eole : fonctionnement de l'option -s (--simulate)
#6 Updated by Scrum Master over 6 years ago
- Project changed from python-pyeole to Distribution EOLE
- Status changed from En cours to Résolu
#7 Updated by Scrum Master over 6 years ago
- Status changed from Résolu to Fermé
- Remaining (hours) changed from 0.25 to 0.0