Skip to content

Commit

Permalink
Merge pull request #187 from NASA-PDS/i186
Browse files Browse the repository at this point in the history
Fix 255-character padding in transfer manifests
  • Loading branch information
jordanpadams authored Sep 12, 2024
2 parents da62c73 + 019f252 commit 3ffa2e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pds2/aipgen/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def _writetransfermanifest(fn: str, pathprefix: str, bac: dict) -> tuple[str, in
for lidvid, files in bac.items():
for f in files:
# We use [:254] because we hard code the ``/``:
entry = f"{lidvid:255}/{_urltocommonpath(f.url, pathprefix)[:254]}\r\n".encode("utf-8")
entry = f"{lidvid:255}/{_urltocommonpath(f.url, pathprefix):254}\r\n".encode("utf-8")
o.write(entry)
hashish.update(entry)
size += len(entry)
Expand Down

0 comments on commit 3ffa2e9

Please sign in to comment.