From 0b241a9586e4a78b3a6091c21179d5be8fb2eda7 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Tue, 26 Dec 2017 23:28:14 +0100 Subject: [PATCH] Consider "recommends" and "supplements" in build.create_deps Fixes: #363 ("osc build -p ../rpms/tw doesnt send recommends to the server which makes client side build behave differently to server side build"). --- osc/build.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/osc/build.py b/osc/build.py index 665bfac7..35362422 100644 --- a/osc/build.py +++ b/osc/build.py @@ -473,6 +473,12 @@ def create_deps(pkgqs): d = p.obsoletes() if d: depfile.append('O:%s%s' % (id, ' '.join(d))) + d = p.recommends() + if d: + depfile.append('r:%s%s' % (id, ' '.join(d))) + d = p.supplements() + if d: + depfile.append('s:%s%s' % (id, ' '.join(d))) depfile.append('I:%s%s-%s 0-%s' % (id, p.name(), p.evr(), p.arch())) return depfile