Skip to content

Commit

Permalink
Add program_id by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
somasm-dev committed Jun 4, 2020
1 parent 1868f03 commit 3f975fd
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions jet/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,10 @@ def main():
sha = crypto.generate_sha256(destination)
else:
sha = crypto.generate_sha1(destination)
if project["scripts"] is not None and sha_bits == "sha1":
content_manifest += "%s %s=%s uid=%s gid=%s mode=%s program_id=%s\n" % \
(f["destination"][1:] if f["destination"][0] == "/" else f["destination"],
sha_bits, sha, f["uid"], f["gid"], f["mode"], f["program_id"])
else:
content_manifest += "%s %s=%s uid=%s gid=%s mode=%s\n" % \
(f["destination"][1:] if f["destination"][0] == "/" else f["destination"],
sha_bits, sha, f["uid"], f["gid"], f["mode"])

content_manifest += "%s %s=%s uid=%s gid=%s mode=%s program_id=%s\n" % \
(f["destination"][1:] if f["destination"][0] == "/" else f["destination"],
sha_bits, sha, f["uid"], f["gid"], f["mode"], f["program_id"])

if f["symlink"]:
contents_symlink += "%s%s %s\n" % (mount_dir, f["destination"], f["destination"])
Expand Down

0 comments on commit 3f975fd

Please sign in to comment.