Bastian Blank, le dim. 03 mars 2019 17:21:53 +0100, a ecrit:
> On Sat, Nov 17, 2018 at 05:52:01PM +0100, Guillem Jover wrote:
> > But as dak uses the entire Package-List from the .dsc for its "seen"
> > tracking this is problematic, because these require NEW processing,
> > or these uploads are not accepted as part of a source-only upload,
> > and even if they get processed once (AFAIR) these get garbage
> > collected as they are never seen in practice, which means they will
> > trigger NEW processing or REJECTs again.
> 
> Could you please propose an algorithm to determine which packages are
> allowed to show up in any upload to the archive?

AIUI, the idea is that in the Package-List field, if a line contains
a "profile=" part, it needs to contain at least an alternative with only
negations to be kept, i.e. something like

if ~= "profile="
{
  if ! ~= "profile=(.*\+)?(![^,]*(,![^,]*)*)(\+.*)?"
    drop line
}

so that
- profile=!noudeb is not dropped,
- profile=!noudeb,!stage1,!stage2 is not dropped,
- profile=!noudeb,!stage1,!stage2+foobar is not dropped,
- profile=!noudeb,!stage1,!stage2+foobar+!bat is not dropped,
- profile=foobar is dropped,
- profile=blah,foobar+baz is dropped,

Samuel

Reply via email to