run: no duplicates in create_tar_from_depot

This patch ensures that depot snapshots created by the run tool
won't contain duplicated content, which would result cyclic hard
links.
This commit is contained in:
Norman Feske 2018-01-19 15:56:48 +01:00
parent 18d963419d
commit 6d6aff0093

View File

@ -243,7 +243,7 @@ proc create_tar_from_depot_binaries { archive_path args } {
check_for_missing_depot_archives
eval "exec tar cf $archive_path -C [depot_dir] $content"
eval "exec tar cf $archive_path -C [depot_dir] [lsort -unique $content]"
}