Skip to content
This repository has been archived by the owner on Oct 10, 2020. It is now read-only.

Commit

Permalink
syscontainers: print only existing files, not directories
Browse files Browse the repository at this point in the history
and normalize the path before printing it.

Signed-off-by: Giuseppe Scrivano <[email protected]>

Closes: #1131
Approved by: ashcrow
  • Loading branch information
giuseppe authored and rh-atomic-bot committed Nov 27, 2017
1 parent 0ce66a0 commit 614a347
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Atomic/rpm_host_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def rm_add_files_to_host(old_installed_files_checksum, exports, prefix="/", file
dest_path = os.path.join(prefix or "/", os.path.relpath(rel_dest_path, "/"))

if os.path.exists(dest_path):
util.write_out("File %s already exists." % dest_path, lf="\n")
if os.path.isfile(dest_path):
util.write_out("File %s already exists" % os.path.normpath(dest_path), lf="\n")
continue

if not os.path.exists(os.path.dirname(dest_path)):
Expand Down

0 comments on commit 614a347

Please sign in to comment.