[elbe-devel] [PATCH 08/14] elbepack: don't skip duplicated source files in repo

Thomas Weißschuh thomas.weissschuh at linutronix.de
Wed Feb 28 11:34:59 CET 2024


When evaluating the field 'Built-Using' of Debian package it can happen
that a single package is added to the repo with different versions.
By default reprepro skips those duplicates but we should preserve them.

    reprepro --keepunreferencedfiles --export=silent-never --basedir "/var/cache/elbe/24910eb9-e669-4399-b9a2-c0a06945813b/srcrepo-main" --priority normal --section misc --component "initvm" includedsc bookworm /var/cache/elbe/sources/glibc_2.36-9+deb12u3.dsc
    Skipping inclusion of 'glibc' '2.36-9+deb12u3' in 'bookworm|initvm|source', as it has already '2.36-9+deb12u4'.
    Deleting files just added to the pool but not used.
    (to avoid use --keepunusednewfiles next time)

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/repomanager.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/elbepack/repomanager.py b/elbepack/repomanager.py
index 9a3e5df17f82..a1604f03e627 100644
--- a/elbepack/repomanager.py
+++ b/elbepack/repomanager.py
@@ -291,6 +291,7 @@ class RepoBase:
             self.new_repo_volume()
 
         global_opt = ['--keepunreferencedfiles',
+                      '--keepunusednewfiles',
                       '--export=silent-never',
                       f'--basedir "{self.fs.path}"',
                       '--priority normal',
-- 
2.44.0



More information about the elbe-devel mailing list