summaryrefslogtreecommitdiffstats
path: root/scripts/lib/recipetool/create.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r--scripts/lib/recipetool/create.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index 1649e406e9..bb9fb9b049 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -604,13 +604,14 @@ def create_recipe(args):
604 sys.exit(1) 604 sys.exit(1)
605 605
606 # Move any extra files the plugins created to a directory next to the recipe 606 # Move any extra files the plugins created to a directory next to the recipe
607 if outfile == '-': 607 if extrafiles:
608 extraoutdir = pn 608 if outfile == '-':
609 else: 609 extraoutdir = pn
610 extraoutdir = os.path.join(os.path.dirname(outfile), pn) 610 else:
611 bb.utils.mkdirhier(extraoutdir) 611 extraoutdir = os.path.join(os.path.dirname(outfile), pn)
612 for destfn, extrafile in extrafiles.iteritems(): 612 bb.utils.mkdirhier(extraoutdir)
613 shutil.move(extrafile, os.path.join(extraoutdir, destfn)) 613 for destfn, extrafile in extrafiles.iteritems():
614 shutil.move(extrafile, os.path.join(extraoutdir, destfn))
614 615
615 lines = lines_before 616 lines = lines_before
616 lines_before = [] 617 lines_before = []