Project

General

Profile

Tâche #9230

Scénario #9431: impossibilité de mettre à jour

Query-Cd est cassé

Added by Joël Cuissinat over 6 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
11/06/2014
Due date:
11/20/2014
% Done:

100%

Estimated time:
2.50 h
Spent time:
Remaining (hours):
0.0

Description

En exécutant le test squash : "SC-T01-015 - reconfigure sans le CD" sur AmonEcole, je suis tombé sur :

root@amonecole:~# Query-Cd -d
*** amonecole 2.4 (00000003) ***

Configuring CDROM
Maj-Cd - 'NoneType' object has no attribute 'split'
Traceback (most recent call last):
  File "/usr/bin/Maj-Cd", line 125, in main
    _configure_sources_cdrom(PKGMGR)
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 1373, in _configure_sources_cdrom
    pkgmgr.configure(vendor='ubuntu', mirror=None, dist=None, level=None)
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 1083, in configure
    component=component)
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 1030, in _run
    **kwargs))
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 550, in _run_containers
    **kwargs)
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 306, in _build_apt_cmd_line
    cmd.extend([u'--dist', _retrieve_dist_from_kwargs(kwargs[u'dist'])])
  File "/usr/lib/python2.7/dist-packages/pyeole/pkg.py", line 275, in _retrieve_dist_from_kwargs
    dist = dist.split('-')
AttributeError: 'NoneType' object has no attribute 'split'

Petit bonus : Query-Cd devrait afficher la release (2.4.1) comme Maj-Auto (8069).


Related issues

Related to creole - Anomalie #8069: Maj-Auto devrait indiquer la "release" plutôt que la "version" Fermé
Copied to creole - Tâche #9769: Traductions manquantes dans Maj-Cd/Query-Cd Fermé 12/01/2014

Associated revisions

Revision f72a35f2 (diff)
Added by Joël Cuissinat over 6 years ago

bin/Maj-Cd : utilisation de eole_release au lieu de eole_version

Ref: #9230 @20m

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

support du cdrom pour la commande apt-eole (ref #9230 @1h)

Revision bde8a106 (diff)
Added by Emmanuel GARETTE over 6 years ago

pyeole/pkg.py : support du CDROM

- monte et démonte le CDROM quand nécessaire
- supprime le fichier /etc/apt/sources.list.d/eole.list

ref #9230

Revision 2a82e124 (diff)
Added by Emmanuel GARETTE over 6 years ago

ajout de variable tiramisu pour gérer les lecteurs CDROM (ref #9230)

Revision 13ff697a (diff)
Added by Emmanuel GARETTE over 6 years ago

autorise le montage du lecteur CD dans le conteneur + corrections Maj-Cd (fixes #9230 @10h)

History

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

  • Estimated time set to 2.50 h
  • Remaining (hours) set to 2.5

#2 Updated by Luc Bourdot over 6 years ago

  • Parent task changed from #9167 to #9238

#3 Updated by Joël Cuissinat over 6 years ago

  • Parent task changed from #9238 to #9167

#4 Updated by Emmanuel GARETTE over 6 years ago

  • Remaining (hours) changed from 2.5 to 1.0

La commande ne plante plus mais on ne peut toujours pas installer de paquet.

#5 Updated by Gérald Schwartzmann over 6 years ago

  • Status changed from Nouveau to En cours
  • Start date set to 11/06/2014

#6 Updated by Joël Cuissinat over 6 years ago

  • Parent task changed from #9167 to #9431

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

  • Status changed from En cours to Nouveau

#8 Updated by Emmanuel GARETTE over 6 years ago

  • Status changed from Nouveau to En cours

#9 Updated by Emmanuel GARETTE over 6 years ago

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

#10 Updated by Emmanuel GARETTE over 6 years ago

  • Remaining (hours) changed from 1.0 to 0.0

#11 Updated by Emmanuel GARETTE over 6 years ago

  • Due date set to 11/20/2014
  • Assigned To set to Emmanuel GARETTE

#12 Updated by Joël Cuissinat over 6 years ago

  • Status changed from Résolu to Fermé

OK en mode non conteneur, test du mode conteneur en cours :

root@eolebase:~# Query-Cd
*** eolebase 2.4.1 ***

Configuring CDROM
Update packages indexes
Installing 1 package: 0 new 1 upgrade
Liste des paquets à mettre à jour : 
    man-db (2.6.1-2ubuntu2) (root)

Also available in: Atom PDF