[elbe-devel] [PATCH] schema: forbid simultaneous package pinning by archive and version

Benedikt Spranger b.spranger at linutronix.de
Mon Mar 18 15:33:22 CET 2024


Am Mon, 18 Mar 2024 12:33:00 +0100
schrieb Thomas Weißschuh <thomas.weissschuh at linutronix.de>:

> Pinning to both version and release at the same time does not work with
> apt as it can only apply on pin record.
> 
> A specification like
> `<pkg pin="codename" version="2022.12*">swupdate</pkg>`
> would result in two distinct pins:
> 
> ```
> Package: swupdate
> Pin: release n=codename
> Pin-Priority: 991
> 
> Package: swupdate
> Pin: version 2022.12*
> Pin-Priority: 1001
> ```
> 
> As `xsd:unique` only works on an element and not on a type it has to be
> copied to both usages of the `rfs:pkg` type.
> XSD 1.1 would support `xsd:assert` but libxml2 only supports XSD 1.0.
> 
> Reported-by: Franz Heger <franz.heger at kuka.com>
> Link: https://github.com/Linutronix/elbe/pull/401#issuecomment-1983594632
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>

Reviewed-by: Benedikt Spranger <b.spranger at linutronix.de>


More information about the elbe-devel mailing list