• Michael Shigorin's avatar
    bin/archdep-filter: implement multi-matching · 2bc28a9c
    Michael Shigorin authored
    This has been inspired by a few commits that cared
    for package availability reasons on a particular
    architecture; the problem at hand is that pkglists
    might need to include groups of packages that are
    (un)available on groups of arches, and tackling that
    with plain pkg@arch just results in combinatorial
    explosion of that matrix.
    
    Arches are handled one-by-one with a few hardcoded
    macro substitutions.
    
    Exploding a "pkg@arch1,arch2" string into a set of:
    
    pkg@arch1
    pkg@arch2
    
    with subsequent archdep pruning would do the trick;
    so here's another sed oneliner that does just that:
    
    $ echo 'pkg@X86,ARM,ppc64le' |
      sed -r ':loop; s/^((([^@]+@)[^,]+)+),([^,]+)/\1\n\3\4/; t loop'
    pkg@X86
    pkg@ARM
    pkg@ppc64le
    
    See-also: 9601a9e7
    See-also: 5581dc91
    See-also: http://stackoverflow.com/a/55781741/561921
    2bc28a9c
Name
Last commit
Last update
..
.fop.xconf Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
apt.conf.sample Loading commit data...
archdep.txt Loading commit data...
assumptions.txt Loading commit data...
branch.txt Loading commit data...
debug.txt Loading commit data...
features.txt Loading commit data...
gen-asciidoc.txt Loading commit data...
metadep.txt Loading commit data...
mkimage-profiles.7.in Loading commit data...
mkimage-profiles.asciidoc Loading commit data...
params.txt Loading commit data...
pkglists.txt Loading commit data...
profiles.mk.sample Loading commit data...
qemu.txt Loading commit data...
style.txt Loading commit data...
vm.txt Loading commit data...