Debian: Fix makePatch delta-dir handling

The delta-dir was not being found during patch generation.
This was because the code to detect initramfs here:
 https://review.opendev.org/c/starlingx/update/+/861184

was changing to a different directory, so delta-dir was
being created in a patch_work directory, and was not
able to be included in the patch.

Test Plan:
  PASS: python make_patch.py --create

Story: 2008862
Task: 46731

Signed-off-by: Al Bailey <al.bailey@windriver.com>
Change-Id: Ide73f4a2dea1945f987cb36fae818bd1973706f9
This commit is contained in:
Al Bailey 2022-11-15 18:22:07 +00:00
parent 8374ed3fcd
commit ed8f13e98d
1 changed files with 2 additions and 0 deletions

View File

@ -509,6 +509,8 @@ class PatchBuilder(object):
clone_dir = os.path.join(self.deploy_dir, clone_dir)
os.chdir(self.deploy_dir)
# self.delta_dir is 'relative' to self.deploy_dir
if os.path.isdir(self.delta_dir):
log.error("Delta dir exists '%s', clean it up and try again", self.delta_dir)
exit(1)