From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dan.rpsys.net (5751f4a1.skybroadband.com [87.81.244.161]) by mail.openembedded.org (Postfix) with ESMTP id 0E3BA7070E for ; Fri, 29 Aug 2014 17:37:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id s7THbTf0013071; Fri, 29 Aug 2014 18:37:29 +0100 Received: from dan.rpsys.net ([127.0.0.1]) by localhost (dan.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id eALrJdT2nFj6; Fri, 29 Aug 2014 18:37:29 +0100 (BST) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by dan.rpsys.net (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id s7THbNvf013067 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Fri, 29 Aug 2014 18:37:24 +0100 Message-ID: <1409333845.29296.193.camel@ted> From: Richard Purdie To: openembedded-core Date: Fri, 29 Aug 2014 18:37:25 +0100 X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Cc: ronan , Ed Bartosh Subject: [PATCH] package_manager.py: enable smart non-interactive mode X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2014 17:37:34 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit From: Ed Bartosh Added --quiet option to smart command line. Without this option smart 1.4.1 turns into interactive mode, i.e. start asking questions and expecting answers. Internally within smart, this changes the default UI to one which just prints to stderr, the naming of the parameter is a little odd but does what we need. Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index f8fc3c2..612c835 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py @@ -543,7 +543,7 @@ class RpmPM(PackageManager): self.install_dir = os.path.join(self.target_rootfs, "install") self.rpm_cmd = bb.utils.which(os.getenv('PATH'), "rpm") self.smart_cmd = bb.utils.which(os.getenv('PATH'), "smart") - self.smart_opt = "--data-dir=" + os.path.join(target_rootfs, + self.smart_opt = "--quiet --data-dir=" + os.path.join(target_rootfs, 'var/lib/smart') self.scriptlet_wrapper = self.d.expand('${WORKDIR}/scriptlet_wrapper') self.solution_manifest = self.d.expand('${T}/saved/%s_solution' %