Skip to content
This repository was archived by the owner on Nov 21, 2018. It is now read-only.

Commit b1ece61

Browse files
committed
Be more picky about which extra artifacts are deleted
1 parent 3e77bd0 commit b1ece61

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

master/master.cfg

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,13 +1179,15 @@ def distsnap_buildfactory(platform, channel_label):
11791179

11801180
# All remaining steps happen on the buildmaster
11811181

1182-
# find <platform>/*.gz | grep -v unknown-linux-gnu | xargs rm
1182+
# If we're not packaging as well then this platform is just producing std or
1183+
# cross artifacts, so delete everything related to the host platform.
11831184
if platform not in packaging_platforms:
1184-
# `find`, not `ls`, because we need the full path to what we'll remove
1185-
clean_cmd = "find " + local_dist_platform_dir + \
1186-
"/*.gz | grep unknown-linux-gnu | xargs rm"
1187-
f.addStep(MasterShellCommand(name="remove linux artifacts",
1188-
command=["sh", "-c", clean_cmd]))
1185+
for host in all_platform_hosts(platform):
1186+
# `find`, not `ls`, because we need the full path to what we'll remove
1187+
clean_cmd = "find " + local_dist_platform_dir + \
1188+
"/*.gz | grep " + host + " | xargs rm"
1189+
f.addStep(MasterShellCommand(name="remove " + host + " artifacts",
1190+
command=["sh", "-c", clean_cmd]))
11891191

11901192
# Add the commit-id file to indicate which commit this is
11911193
# for. This will be checked by the DistSync buildstep later to

0 commit comments

Comments
 (0)