This repository was archived by the owner on Nov 21, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -1320,16 +1320,13 @@ def packaging_dist_buildfactory(platform, channel_label):
1320
1320
1321
1321
# Get the id to use to uniquely identify this revision. In the
1322
1322
# 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
1329
1326
# 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 /' "
1331
1328
f .addStep (SetPropertyFromCommand (env = CommandEnv (),
1332
- command = ["sh" , "-c" , source_hash ],
1329
+ command = ["sh" , "-c" , source_id ],
1333
1330
property = "commit_id" ,
1334
1331
workdir = WORKDIR ))
1335
1332
You can’t perform that action at this time.
0 commit comments