tools: store patch.yaml in patch dir
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 12 Apr 2013 09:00:34 +0000 (12:00 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 12 Apr 2013 09:00:34 +0000 (12:00 +0300)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
tools/updateinfo/create-update.py

index 8c73655..f34757f 100755 (executable)
@@ -132,4 +132,7 @@ zip_checksum = create_update_file(patch_path, repo_dir, destination,  patch_id)
 
 update_metadata(destination, tmp_dir, opts.updatesfile, patch, zip_checksum)
 
+# store patch metadata in patch dir, too
+shutil.copy2(os.path.join(repo_dir, patch_id), os.path.join(target_dir, 'patch.yaml'))
+
 shutil.rmtree(tmp_dir)