build: Put source additional files before applying patches.
This way, we can apply a patch on top of an additional source file.
This commit is contained in:
@@ -509,10 +509,12 @@ class Builder:
|
|||||||
def unpack_source_archives(self):
|
def unpack_source_archives(self):
|
||||||
ctx.ui.action(_("Unpacking archive(s)..."))
|
ctx.ui.action(_("Unpacking archive(s)..."))
|
||||||
self.sourceArchives.unpack(self.pkg_work_dir())
|
self.sourceArchives.unpack(self.pkg_work_dir())
|
||||||
|
|
||||||
|
# Grab AdditionalFiles
|
||||||
|
self.copy_additional_source_files()
|
||||||
|
|
||||||
# apply the patches and prepare a source directory for build.
|
# apply the patches and prepare a source directory for build.
|
||||||
if self.apply_patches():
|
if self.apply_patches():
|
||||||
# Grab AdditionalFiles
|
|
||||||
self.copy_additional_source_files()
|
|
||||||
ctx.ui.info(_(" unpacked (%s)") % self.pkg_work_dir())
|
ctx.ui.info(_(" unpacked (%s)") % self.pkg_work_dir())
|
||||||
self.set_state("unpack")
|
self.set_state("unpack")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user