Updating python-debian support for build profiles

Stuart Prescott stuart at debian.org
Thu Sep 4 14:11:17 UTC 2014


Hi josch,

> > * there now can be multiple sets of < … > restrictions specified for each
> > package
> 
> This is implemented in a similar way of the dpkg patch for this: get
> everything inside the <> brackets and then split by '>\s+<'. Though notice
> that there should be a space between each <> block but you write '>\s*<'
> which also allows no space at all.

hmm... is there a point in enforcing strictness on what is accepted? (Writing 
it back out is done with strict conformance)

> > * as a result, we need to return a list of restrictions not a single
> > restriction
> 
> Especially after the change we were unsure whether the "restriction lists"
> should in fact be "build profile lists" but I guess we stick to the former.

Given these names will be exposed in the API, it would be good to have a 
definitive "this is what we are going to call this" prior to making the API 
publicly available.

> > * I propose flattening the representation of each restriction from
> > (enabled, (namespace, label)) to (enabled, namespace, label)
> 
> There are no namespaces anymore. 

likewise here -- the terminology "namespace" and "label" came directly from 
the text in the wiki, but I'm not sure what to call thing that used to be 
called "namespace.label". The closest I can see is "term" or perhaps 
"restriction"; however, the former seems to be used to include the ! while the 
latter is not actually used.

Is "term" the component such as "cross" or "!stage1" from which a restriction 
list is built? (Or is it "cross", "stage1" not including the "!"?)

Some clarity in this will make life easier for implementers and will lead to a 
more consistent interface in each implementation which will be a good thing. 
(See, for instance, the confusion between "archive area" and "component" in 
policy, dak, Release, sources.list, apt, ...)

thanks!
Stuart

-- 
Stuart Prescott    http://www.nanonanonano.net/   stuart at nanonanonano.net
Debian Developer   http://www.debian.org/         stuart at debian.org
GPG fingerprint    90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7



More information about the pkg-python-debian-maint mailing list