Skip to content

Commit

Permalink
cmd-koji-upload: follow symlinks when getting file size
Browse files Browse the repository at this point in the history
(cherry picked from commit 7e3a73c)
  • Loading branch information
Ben Howard authored and yuqi-zhang committed Aug 19, 2019
1 parent 99d2786 commit d64cd94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd-koji-upload
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class Build(_Build):
continue

# os.path.getsize uses 1kB instead of 1KB. So we use stat instead.
fsize = subprocess.check_output(["stat", "--format", '%s', lpath])
fsize = subprocess.check_output(["stat", "--dereference", "--format", '%s', lpath])
log.debug(" * calculating checksum")
self._found_files[lpath] = {
"local_path": lpath,
Expand Down

0 comments on commit d64cd94

Please sign in to comment.