Project

General

Profile

Anomalie #6295

Trop d'argument à la fonction user_exit en cas de ctrl-c

Added by Emmanuel GARETTE over 7 years ago. Updated over 7 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Category:
-
Start date:
11/04/2013
Due date:
11/08/2013
% Done:

100%

Spent time:
Distribution:
EOLE 2.4

Description

La fonction user_exit() n'est pas appelé en cas de ctrl-c mal placé :

root@eolebase:~# reconfigure -d
Début de configuration
reconfigure - Le mode conteneur est désactivé.
reconfigure - Le mode conteneur est désactivé.
Gestion des paquets
   Suppression des paquets
Running remove for root
No package to remove.
Done downloading            
^Creconfigure - user_exit() takes no arguments (2 given)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/creole/reconfigure.py", line 432, in main
    packages()
  File "/usr/lib/python2.7/dist-packages/creole/reconfigure.py", line 266, in packages
    remove_packages()
  File "/usr/lib/python2.7/dist-packages/creole/reconfigure.py", line 245, in remove_packages
    PKGMGR.remove(packages=pkg_list)
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 847, in remove
    silent=silent)
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 762, in _run
    **kwargs))
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 354, in _run
    return {u'root': getattr(self, func)(silent=silent, **kwargs)}
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 593, in remove
    silent=silent)
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 567, in _apply_to_package
    self.commit(silent=silent)
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 439, in commit
    self.cache.commit(self._acquire_progress, self._install_progress)
  File "/usr/lib/python2.7/dist-packages/apt/deprecation.py", line 98, in deprecated_function
    return func(*args, **kwds)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 481, in commit
    res = self.install_archives(pm, install_progress)
  File "/usr/lib/python2.7/dist-packages/apt/deprecation.py", line 98, in deprecated_function
    return func(*args, **kwds)
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 444, in install_archives
    res = install_progress.run(pm)
  File "/usr/lib/python2.7/dist-packages/apt/progress/base.py", line 205, in run
    res = self.wait_child()
  File "/usr/lib/python2.7/dist-packages/apt/progress/base.py", line 270, in wait_child
    self.select_timeout)
TypeError: user_exit() takes no arguments (2 given)

Related issues

Related to creole - Tâche #6669: Plusieurs ctrl-c peuvent être nécessaire pour stopper reconfigure Ne sera pas résolu 10/28/2014 11/07/2014

Associated revisions

Revision db303cb5 (diff)
Added by Emmanuel GARETTE over 7 years ago

creole/reconfigure.py : autoriser des arguments à la fonction user_exit (fixes #6295)

History

#1 Updated by Joël Cuissinat over 7 years ago

  • Target version changed from Eole 2.4-beta1 to Eole 2.4-beta2

#2 Updated by Emmanuel GARETTE over 7 years ago

  • Status changed from Nouveau to Résolu
  • % Done changed from 0 to 100

#3 Updated by Emmanuel GARETTE over 7 years ago

  • Due date set to 11/08/2013
  • Assigned To set to Emmanuel GARETTE
  • Start date set to 11/04/2013

#4 Updated by Joël Cuissinat over 7 years ago

  • Status changed from Résolu to Fermé

Plus de traceback, par contre il peut arriver que plusieurs ctrl-c soient nécessaires => #6669 :o

Also available in: Atom PDF