Project

General

Profile

Tâche #14927

Scénario #14728: Corriger les problèmes remontés sur Upgrade-Auto lors du sprint précédent

Upgrade-Auto provoque un traceback si la release n'existe pas

Added by Laurent Flori over 4 years ago. Updated over 4 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
02/08/2016
Due date:
% Done:

100%

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

Description

Upgrade-Auto de 2.4.2 vers 2.5.2 (non-disponible)

root@scribe:~# Upgrade-Auto --limit-rate 0 --release 2.5.2
Ce script va effectuer la migration vers une nouvelle version de la distribution
Les modifications ne sont pas réversibles
zephir - UPGRADE => ERR : Version 2.5.2 invalide, utiliser 2.5.1 
Traceback (most recent call last):
  File "/usr/share/eole/sbin/Upgrade-Auto", line 582, in <module>
    main()
  File "/usr/share/eole/sbin/Upgrade-Auto", line 475, in main
    raise ValueError(err_msg)
ValueError: Version 2.5.2 invalide, utiliser 2.5.1

Associated revisions

Revision 80160985 (diff)
Added by Laurent Flori over 4 years ago

Suppression du raise si xxx (--release xxx) n'existe pas

ref: #14927 @10min

Revision 08f76b2f (diff)
Added by Laurent Flori over 4 years ago

Afficher le message d'erreur et sortir proprement

ref: #14927 @20min

History

#1 Updated by Laurent Flori over 4 years ago

  • Description updated (diff)
  • Assigned To set to Laurent Flori

#2 Updated by Laurent Flori over 4 years ago

  • Status changed from Nouveau to En cours

#3 Updated by Laurent Flori over 4 years ago

  • % Done changed from 0 to 100
  • Estimated time set to 1.00 h
  • Remaining (hours) set to 0.5

#4 Updated by Bruno Boiget over 4 years ago

  • Status changed from En cours to Fermé
  • Remaining (hours) changed from 0.5 to 0.0

Le code me semble correct et est bien présent sur le dernier paquet 2.5.2.

Non testable en l'état, Upgrade-Auto ne sera pas utilisable sur 2.5.2 tant que les scripts d'upgrade Ubuntu ne sont pas en place (traceback au lancement, en attente de correction. cf #14896).

Also available in: Atom PDF