Debian Patch Delete

This commit enables sw-patch delete and cleans up the
ostree tarball from the /opt/patching/packages directory.

Test:
sw-patch delete <patchID>

Story: 2009969
Task: 45289
Signed-off-by: Jessica Castelino <jessica.castelino@windriver.com>
Change-Id: I8afff9511391aa7cdf540e09bd53007032b98aa6
This commit is contained in:
Jessica Castelino 2022-05-04 22:06:19 +00:00
parent 77a7383ab7
commit 1b7e2d5117
1 changed files with 1 additions and 1 deletions

View File

@ -871,7 +871,7 @@ class PatchController(PatchService):
:param patch_id: The patch ID
'''
ostree_tar_dir = package_dir[patch_sw_version]
ostree_tar_filename = "%s/%s" % (ostree_tar_dir, patch_id)
ostree_tar_filename = "%s/%s-software.tar" % (ostree_tar_dir, patch_id)
return ostree_tar_filename
def get_repo_filename(self, patch_sw_version, contentname):