Skip to content

Commit

Permalink
Add alidist hash to analytics (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf authored and dberzano committed Jun 1, 2016
1 parent 9f2c866 commit e8aed4a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions aliBuild
Original file line number Diff line number Diff line change
Expand Up @@ -537,14 +537,16 @@ def doMain():
if not exists(specDir):
makedirs(specDir)

os.environ["ALIBUILD_ALIDIST_HASH"] = getDirectoryHash(args.configDir)

debug("Building for architecture %s" % args.architecture)
debug("Number of parallel builds: %d" % args.jobs)
debug(format("Using %(star)sBuild from "
"%(star)sbuild@%(toolHash)s recipes "
"in %(star)sdist@%(distHash)s",
star=star(),
toolHash=getDirectoryHash(dirname(__file__)),
distHash=getDirectoryHash(args.configDir)))
distHash=os.environ["ALIBUILD_ALIDIST_HASH"]))

systemPackages = set()
ownPackages = set()
Expand Down Expand Up @@ -1209,10 +1211,11 @@ def doMain():
progress.end("failed" if err else "ok", err)
report_event("BuildError" if err else "BuildSuccess",
spec["package"],
format("%(a)s %(v)s %(c)s",
format("%(a)s %(v)s %(c)s %(h)s",
a = args.architecture,
v = spec["version"],
c = spec["commit_hash"]))
c = spec["commit_hash"],
h = os.environ["ALIBUILD_ALIDIST_HASH"][0:10]))

updatablePkgs = [ x for x in spec["requires"] if x in develPkgs ]
if spec["package"] in develPkgs:
Expand Down

0 comments on commit e8aed4a

Please sign in to comment.