Skip to content

Commit

Permalink
Merge pull request #8 from somasm-dev/master
Browse files Browse the repository at this point in the history
Delete associated files when the package is deleted.
  • Loading branch information
ydnath authored Aug 31, 2021
2 parents 79e91e5 + 0e7bed4 commit 46aeb10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jet/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ def package_xml_file(filename):
if project[p]:
etree.SubElement(package_xml, p)

# Add delete-immediate knob so that when JET Package
# is deleted, all symlinks will be deleted too.
# This will be enabled for all JetEZ based packages.
etree.SubElement(package_xml, "delete-immediate")

dir = etree.SubElement(package_xml, "dir", name="contents")
package_xml_file("contents/contents.iso")
package_xml_file("contents/contents.symlinks")
Expand Down

0 comments on commit 46aeb10

Please sign in to comment.