Skip to content

Commit e8aed4a

Browse files
ktfdberzano
authored andcommitted
Add alidist hash to analytics (#296)
1 parent 9f2c866 commit e8aed4a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

aliBuild

+6-3
Original file line numberDiff line numberDiff line change
@@ -537,14 +537,16 @@ def doMain():
537537
if not exists(specDir):
538538
makedirs(specDir)
539539

540+
os.environ["ALIBUILD_ALIDIST_HASH"] = getDirectoryHash(args.configDir)
541+
540542
debug("Building for architecture %s" % args.architecture)
541543
debug("Number of parallel builds: %d" % args.jobs)
542544
debug(format("Using %(star)sBuild from "
543545
"%(star)sbuild@%(toolHash)s recipes "
544546
"in %(star)sdist@%(distHash)s",
545547
star=star(),
546548
toolHash=getDirectoryHash(dirname(__file__)),
547-
distHash=getDirectoryHash(args.configDir)))
549+
distHash=os.environ["ALIBUILD_ALIDIST_HASH"]))
548550

549551
systemPackages = set()
550552
ownPackages = set()
@@ -1209,10 +1211,11 @@ def doMain():
12091211
progress.end("failed" if err else "ok", err)
12101212
report_event("BuildError" if err else "BuildSuccess",
12111213
spec["package"],
1212-
format("%(a)s %(v)s %(c)s",
1214+
format("%(a)s %(v)s %(c)s %(h)s",
12131215
a = args.architecture,
12141216
v = spec["version"],
1215-
c = spec["commit_hash"]))
1217+
c = spec["commit_hash"],
1218+
h = os.environ["ALIBUILD_ALIDIST_HASH"][0:10]))
12161219

12171220
updatablePkgs = [ x for x in spec["requires"] if x in develPkgs ]
12181221
if spec["package"] in develPkgs:

0 commit comments

Comments
 (0)