[elbe-devel] [PATCH] comments: add description of suite interpretation
Manuel Traut
manuel.traut at linutronix.de
Tue Nov 21 06:45:56 CET 2017
Hi John,
On Mon, Nov 20, 2017 at 03:00:39PM +0100, John Ogness wrote:
> If the suite name is followed by a slash, the path to search the
> mirror is created differently.
>
> deb http://mirror foo --> URI-Prefix: http://mirror/dist/foo
> deb http://mirror foo/ --> URI-Prefix: http://mirror/foo
>
> Add comments and use existing variable name so that it is easier
> to understand what is happening and know it is on purpose.
thanks! applied to devel/elbe-3.0
> ---
> elbepack/elbexml.py | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/elbepack/elbexml.py b/elbepack/elbexml.py
> index 9babbe2b..39eed4c7 100644
> --- a/elbepack/elbexml.py
> +++ b/elbepack/elbexml.py
> @@ -166,7 +166,13 @@ class ElbeXML(object):
> suite = lsplit[2]
> section = lsplit[3]
>
> - if lsplit[2].endswith('/'):
> + #
> + # NOTE: special interpretation if suite followed by slash
> + #
> + # deb http://mirror foo --> URI-Prefix: http://mirror/dist/foo
> + # deb http://mirror foo/ --> URI-Prefix: http://mirror/foo
> + #
> + if suite.endswith('/'):
> s = "%s/%s" % (url, suite)
> else:
> s = "%s/dists/%s/" % (url, suite)
> --
> 2.14.0
>
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel
More information about the elbe-devel
mailing list