[elbe-devel] [PATCH v2 03/15] rpcaptcache: fix norecommend being inverted

Torben Hohn torben.hohn at linutronix.de
Thu May 16 09:05:24 CEST 2019


norecommend means, that Install-Recomends shall be 0.

Fix it.

This changes the behaviour of the <norecommend> tag, which might break
some elbe xml files. However, this behaviour now, is correct.

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

diff --git a/elbepack/rpcaptcache.py b/elbepack/rpcaptcache.py
index d621a5e9f..d4f4a7949 100644
--- a/elbepack/rpcaptcache.py
+++ b/elbepack/rpcaptcache.py
@@ -50,9 +50,9 @@ class RPCAPTCache(InChRootObject):
         self.notifier = notifier
         config.set("APT::Architecture", arch)
         if norecommend:
-            config.set("APT::Install-Recommends", "1")
-        else:
             config.set("APT::Install-Recommends", "0")
+        else:
+            config.set("APT::Install-Recommends", "1")
 
         if noauth:
             config.set("APT::Get::AllowUnauthenticated", "1")
-- 
2.11.0




More information about the elbe-devel mailing list