[elbe-devel] [PATCH 5/6] repomanager: add support for Binary: lines in repo._remove()

Torben Hohn torben.hohn at linutronix.de
Wed May 29 16:34:10 CEST 2019


allow the code to handle .changes files as expected, by
handling Binary: lines.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/repomanager.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/elbepack/repomanager.py b/elbepack/repomanager.py
index 6a4509060..34319bfc3 100644
--- a/elbepack/repomanager.py
+++ b/elbepack/repomanager.py
@@ -255,6 +255,10 @@ class RepoBase(object):
                 self._removesrc(p['Source'], codename)
             elif 'Package' in p:
                 self._removedeb(p['Package'], codename)
+            elif 'Binary' in p:
+                for pp in p['Binary'].split():
+                    self._removedeb(pp, codename)
+
 
     def _includedsc(self, path, codename, component):
         if self.maxsize:
-- 
2.11.0




More information about the elbe-devel mailing list