From dab4a9bbbe893770f53eea48c755d6e36386d582 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Sun, 24 Feb 2013 18:15:12 +1100 Subject: [PATCH] Check the dry-opt option before doing the install. --- source-builder/sb/setbuilder.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source-builder/sb/setbuilder.py b/source-builder/sb/setbuilder.py index b8f9f11..dc54e70 100644 --- a/source-builder/sb/setbuilder.py +++ b/source-builder/sb/setbuilder.py @@ -122,8 +122,9 @@ class buildset: dst = _build.config.expand('%{_prefix}') src = path.join(src, dst) _notice(self.opts, 'installing: %s -> %s' % \ - (self.bset_pkg, os.path.relpath(path.host(dst)))) - self.copy(src, dst) + (self.bset_pkg, path.host(dst))) + if not self.opts.dry_run(): + self.copy(src, dst) def last_package(self, _build, tmproot): if self.opts.get_arg('--bset-tar-file'):