Skip to content

Commit

Permalink
Merge pull request #6 from somasm-dev/master
Browse files Browse the repository at this point in the history
Add program_id by default.
  • Loading branch information
ydnath authored Jun 4, 2020
2 parents 1868f03 + 3f975fd commit 23b8d60
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 23b8d60

Please sign in to comment.