From c939d48904e3216ecef0b2479688a63ce8b63809 Mon Sep 17 00:00:00 2001 From: "Ivan A. Melnikov" Date: Tue, 25 Jun 2013 03:18:32 +0300 Subject: [PATCH] Add default value for component patches If no patches are specified for particular component, we now look for them in conf/patches//
, where section is 'download' or 'package'. Change-Id: Iee40ef1eee13783650929525d478195cc0428170 Fixes: bug 1194187 --- anvil/components/base_install.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/anvil/components/base_install.py b/anvil/components/base_install.py index 6d0f5806..5b9a530f 100644 --- a/anvil/components/base_install.py +++ b/anvil/components/base_install.py @@ -16,6 +16,7 @@ from anvil.components import base from anvil import downloader as down from anvil import log as logging from anvil import patcher +from anvil import settings from anvil import shell as sh from anvil import trace as tr from anvil import utils @@ -66,7 +67,8 @@ class PkgInstallComponent(base.Component): def list_patches(self, section): what_patches = self.get_option('patches', section) if not what_patches: - what_patches = [] + what_patches = [sh.joinpths(settings.CONFIG_DIR, 'patches', + self.name, section)] canon_what_patches = [] for path in what_patches: if sh.isdir(path):