From 6d6aff0093d35a19153c43c5331695c9ccb0094b Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Fri, 19 Jan 2018 15:56:48 +0100 Subject: [PATCH] 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. --- tool/run/depot.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/run/depot.inc b/tool/run/depot.inc index 4901c1f98c..c9b5827b8e 100644 --- a/tool/run/depot.inc +++ b/tool/run/depot.inc @@ -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]" }