Skip to content

Commit

Permalink
Update appimage/private/tool/mkappimage.py
Browse files Browse the repository at this point in the history
Co-authored-by: Laurenz <[email protected]>
  • Loading branch information
woutervdstoel and lalten committed Jun 14, 2024
1 parent f3fc915 commit 1641c92
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion appimage/private/tool/mkappimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ def populate_appdir(appdir: Path, params: AppDirParams) -> None:
if dst.exists():
# this is likely a runfile of a transitioned binary that's also present in untransitioned form.
# We shouldn't try to overwrite it because generated files are read-only.
continue
if src.read_bytes() == dst.read_bytes():
continue
else:
raise NotImplementedError(f"Got more than one {dst=} with different contents")
assert src.exists(), f"want to copy {src} to {dst}, but it does not exist"
_copy_file_or_dir(src, dst, keep_symlinks=True)

Expand Down

0 comments on commit 1641c92

Please sign in to comment.