Project

General

Profile

Tâche #21100

Scénario #21077: Traitement express MEN (34-36)

L’expression régulière pour valider la syntaxe des dépôts tiers est trop restrictive.

Added by Benjamin Bohard over 2 years ago. Updated about 2 years ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
07/26/2017
Due date:
% Done:

100%

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

Description

Certains des dépôts de paquets que nous utilisons ne classent pas les paquets par distribution et composant. La dernière partie de l’expression régulière (" \w") empêche de déclarer ces dépôts dans l’interface de configuration du module.

Associated revisions

Revision 25c7d8ac (diff)
Added by Benjamin Bohard about 2 years ago

Utiliser une expression régulière autorisant plus de syntaxes pour la déclaration du dépôt.

Ref #21100

Revision e6d1a381 (diff)
Added by Benjamin Bohard about 2 years ago

Le message d’erreur indique la page de man à consulter en cas d’erreur de syntaxe.

Ref #21100

History

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

  • Tracker changed from Demande to Tâche
  • Estimated time set to 3.00 h
  • Parent task set to #21077
  • Remaining (hours) set to 3.0

Concerne la fonctionnalité : Dépôt tiers (NB : EOLE>=2.6.1 devrait être mentionné dans la doc de l'onglet).

A corriger pour 2.6.1 et 2.6.2, un exemple d'adresse de dépôt serait le bienvenu afin de faciliter la validation de la demande ;)

#2 Updated by Benjamin Bohard over 2 years ago

Je n’ai pas trouvé de synthèse des syntaxes reconnues par apt. Les dépôts pour Debian et Ubuntu utilisent, a priori, la distribution et les composants. Pour notre cas particulier, il n’y a pas de composants et la distribution est remplacée par « ./ » :

deb http://url.depot/dossier-sous-webroot ./

#3 Updated by Benjamin Bohard about 2 years ago

Extrait de la page de man sources.list.5 :

ONE-LINE-STYLE FORMAT
Files in this format have the extension .list. Each line specifying a source starts with a type (e.g. deb-src)
followed by options and arguments for this type. Individual entries cannot be continued onto a following line.
Empty lines are ignored, and a # character anywhere on a line marks the remainder of that line as a comment.
Consequently an entry can be disabled by commenting out the entire line. If options should be provided they are
separated by spaces and all of them together are enclosed by square brackets ([]) included in the line after the type separated
from it with a space. If an option allows multiple values these are separated from each other with a comma (,).
An option name is separated from its value(s) by an equals sign (=). Multivalue options also have -= and += as separators,
which instead of replacing the default with the given value(s) modify the default value(s) to remove or include the given values.

This is the traditional format and supported by all apt versions. Note that not all options as described below are supported by all apt versions.
Note also that some older applications parsing this format on their own might not expect to encounter options
as they were uncommon before the introduction of multi-architecture support. 

The format for two one-line-style entries using the deb and deb-src
       types is:

           deb [ option1=value1 option2=value2 ] uri suite [component1] [component2] [...]
           deb-src [ option1=value1 option2=value2 ] uri suite [component1] [component2] [...]

Et, pour le cas qui nous intéresse directement (./ en guise de « suite ») :
The URI for the deb type must specify the base of the Debian distribution, from which APT will find the information it needs.
suite can specify an exact path, in which case the components must be omitted and suite must end with a slash (/).
This is useful for the case when only a particular sub-directory of the archive denoted by the URI is of interest.
If suite does not specify an exact path, at least one component must be present.

#4 Updated by Benjamin Bohard about 2 years ago

  • Remaining (hours) changed from 3.0 to 2.0

#5 Updated by Benjamin Bohard about 2 years ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Benjamin Bohard
  • % Done changed from 0 to 90

Paquet fait en 2.6.2

#6 Updated by Benjamin Bohard about 2 years ago

  • Project changed from eole-common to Distribution EOLE
  • Status changed from En cours to Résolu

#7 Updated by Benjamin Bohard about 2 years ago

  • % Done changed from 90 to 100
  • Remaining (hours) changed from 2.0 to 0.25

#8 Updated by Joël Cuissinat about 2 years ago

  • Remaining (hours) changed from 0.25 to 0.0

#9 Updated by Joël Cuissinat about 2 years ago

La correction me convient, j'ai recompilé pour 2.6.1 : eole-common 2.6.1-111

#10 Updated by Joël Cuissinat about 2 years ago

  • Status changed from Résolu to Fermé

Also available in: Atom PDF