summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/archiver.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 3543ca9c58..188f8c0423 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -349,8 +349,8 @@ python do_ar_recipe () {
349 bbappend_files = d.getVar('BBINCLUDED', True).split() 349 bbappend_files = d.getVar('BBINCLUDED', True).split()
350 # If recipe name is aa, we need to match files like aa.bbappend and aa_1.1.bbappend 350 # If recipe name is aa, we need to match files like aa.bbappend and aa_1.1.bbappend
351 # Files like aa1.bbappend or aa1_1.1.bbappend must be excluded. 351 # Files like aa1.bbappend or aa1_1.1.bbappend must be excluded.
352 bbappend_re = re.compile( r".*/%s_[^/]*\.bbappend$" %pn) 352 bbappend_re = re.compile( r".*/%s_[^/]*\.bbappend$" % re.escape(pn))
353 bbappend_re1 = re.compile( r".*/%s\.bbappend$" %pn) 353 bbappend_re1 = re.compile( r".*/%s\.bbappend$" % re.escape(pn))
354 for file in bbappend_files: 354 for file in bbappend_files:
355 if bbappend_re.match(file) or bbappend_re1.match(file): 355 if bbappend_re.match(file) or bbappend_re1.match(file):
356 shutil.copy(file, outdir) 356 shutil.copy(file, outdir)