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

Commit cee6efd

Browse files
committed
Fix package desyncing #7
1 parent c38e165 commit cee6efd

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

master/master.cfg

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,16 +1320,13 @@ def packaging_dist_buildfactory(platform, channel_label):
13201320

13211321
# Get the id to use to uniquely identify this revision. In the
13221322
# other dist builds this is the commit sha. Here though we're
1323-
# going to hash the source tarball (because that's what we've got
1324-
# on hand). When all platforms have synced with this id then
1325-
# we'll upload. Sadly, cksum is the only command that seems to
1326-
# exist everywhere (for some reason I can't get shasum to
1327-
# work...). Routing stderr to /dev/null is to work around a
1328-
# mysterious bug on windows where cksum thinks I'm trying to sum a
1323+
# going to use the hash from the version file.
1324+
# Routing stderr to /dev/null is to work around a
1325+
# mysterious bug on windows where cat thinks I'm trying to pipe
13291326
# file called '^'.
1330-
source_hash = "cksum in/rust-*-src.tar.gz 2> /dev/null | head -c8"
1327+
source_id = "cat tmp/work/rustc-*/version 2> /dev/null | sed 's/^.*(\([a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]\).*/\1/'"
13311328
f.addStep(SetPropertyFromCommand(env=CommandEnv(),
1332-
command=["sh", "-c", source_hash],
1329+
command=["sh", "-c", source_id],
13331330
property="commit_id",
13341331
workdir=WORKDIR))
13351332

0 commit comments

Comments
 (0)