[elbe-devel] [PATCH] elbepack: dump: group installed packages by origin

Eduard Krein eduard.krein at linutronix.de
Tue Jun 25 16:35:48 CEST 2024


Am 25.06.2024 um 13:42 schrieb Thomas Weißschuh:

> Now that we have the actual "Origin:" field from the repository itself
> available, use it to replace the hardcoded site-based mapping.
> This works also in the face of mirrors and proxies.
>
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
Reviewed-by: Eduard Krein<eduard.krein at linutronix.de>
> ---
>   elbepack/dump.py | 7 +------
>   1 file changed, 1 insertion(+), 6 deletions(-)
>
> diff --git a/elbepack/dump.py b/elbepack/dump.py
> index 905221234170..c277193f7975 100644
> --- a/elbepack/dump.py
> +++ b/elbepack/dump.py
> @@ -202,12 +202,7 @@ def elbe_report(xml, buildenv, cache, targetfs):
>   
>       groups = collections.defaultdict(list)
>       for p in instpkgs:
> -        o = p.origin.site
> -        if o.endswith('.debian.org'):
> -            # Group upstream packages together.
> -            o = 'Debian'
> -
> -        groups[o].append(p)
> +        groups[p.origin.origin].append(p)
>   
>       # Sort alphabetically, 'Debian' last.
>       for origin, pkgs in sorted(groups.items(), key=lambda x: (x[0] == 'Debian', x[0])):
>
> ---
> base-commit: 5e13aae432f52800439432fea4ab429eb6c7c724
> change-id: 20240625-pkg-origin-9df9dc70f6f0
>
> Best regards,

-- 
Eduard Krein
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 19; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/legal/data-protection.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br.,
HRB700 806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas
Gleixner, Tiffany Silva, Sean Fennelly, Jeffrey Schneiderman



More information about the elbe-devel mailing list