Bug#790056: please consider a shorter or a configurable origin in reprepro config

2015-07-26 Thread Stephan Sürken
On Fr, 2015-06-26 at 18:55 +0200, Marc Haber wrote:
(...)
> the rather terse "Debian" in the normal Debian archives. This leads to
> pin lines like
> 
> Pin: release n=sid-test-unstable, o=Mini-Buildd archive zg on 
> spinturn.zugschlus.de
> 
> which is like asking for trouble in my opinion regarding the spaces in
> the origin value. Do I need to quote the string?

No. You even must not.

>  Do I need to quote
> the spaces?

No. You even must not.

> Will it work when the "o=" part is not last in the line?

Yes.

> Will it work when I use an additional space before the comma
> separating the next pin item in the pin line?

Yes ;).

I cannot proof this with actual documentaion ;), but is has worked so
for years and years: it seems apt splits the string on ",", and then
removes leading and tailing whitespaces on the items.

> All this could be avoided by using a much shorter default value for
> Origin, or making the Origin configurable. As far as I understand the
> new mini-buildd logic, this field should be part of the "distribution"
> object inside mini-buildd's configuration.

Agreed anyway (that this should be configurable).

The default value needs to be more complicated, as we want to generate a
different Origin by default for any mini-buildd instance.

Hth,

S


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#790056: please consider a shorter or a configurable origin in reprepro config

2015-06-26 Thread Marc Haber
Package: python-mini-buildd
Version: 1.0.7
Severity: wishlist

Hi,

in the generated reprepro configuration, Origin is set to something
like "Mini-Buildd archive zg on spinturn.zugschlus.de" as opposed to
the rather terse "Debian" in the normal Debian archives. This leads to
pin lines like

Pin: release n=sid-test-unstable, o=Mini-Buildd archive zg on 
spinturn.zugschlus.de

which is like asking for trouble in my opinion regarding the spaces in
the origin value. Do I need to quote the string? Do I need to quote
the spaces? Will it work when the "o=" part is not last in the line?
Will it work when I use an additional space before the comma
separating the next pin item in the pin line?

All this could be avoided by using a much shorter default value for
Origin, or making the Origin configurable. As far as I understand the
new mini-buildd logic, this field should be part of the "distribution"
object inside mini-buildd's configuration.

Greetings
Marc


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org