Explorar el Código

swupdate_class: do not overwrite sw-description from WORKDIR

If SRC_URI contains a file called sw-description, it overwrites the
one from WORKDIR.  Fix this.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard hace 9 años
padre
commit
c390b1a4f4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      classes/swupdate.bbclass

+ 1 - 1
classes/swupdate.bbclass

@@ -107,8 +107,8 @@ python do_swuimage () {
     for url in fetch.urls:
         local = fetch.localpath(url)
         filename = os.path.basename(local)
-        shutil.copyfile(local, os.path.join(s, "%s" % filename ))
         if (filename != 'sw-description'):
+            shutil.copyfile(local, os.path.join(s, "%s" % filename ))
             list_for_cpio.append(filename)
 
 # SWUPDATE_IMAGES refers to images in the DEPLOY directory