Преглед на файлове

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 преди 9 години
родител
ревизия
8677ef8986
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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