Procházet zdrojové kódy

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 před 9 roky
rodič
revize
8677ef8986
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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