commit | 1c28da270405a1f0e23a3601386ba3128e027f1a | [log] [tgz] |
---|---|---|
author | Roland McGrath <mcgrathr@google.com> | Wed Dec 19 12:06:45 2018 -0800 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Wed Dec 19 20:51:21 2018 +0000 |
tree | 6be57770f3f8bc6e47eb4ceb3dab750c76965eb4 | |
parent | 0ffc24b85cf301212ed865db103537b5414fa789 [diff] |
[build_id_conv] Use non-racy mkdir Two instances of the script running at the same time were racy in their mkdir behavior. Use os.makedirs and catch the EEXIST error rather than using a racy precondition. In newer versions of Python, os.makedirs takes an optional exists_ok=True parameter for this, but we can't rely on having a Python that new. Test: CQ Change-Id: I48c096ab29b6a3159a784413df0413fa259670f3
This repository is for scripts useful when hacking on Fuchsia. This repository should contain scripts that perform tasks spanning multiple repositories. Scripts that only operate within a single repository should live in the relevant repository.
The push-package.py script pushes the files listed in the given manifests files. No checking is performed for incremental changes.
The sample command lines below can be used to build Modular and then push those files to the default device. This assumes you have already booted your device with a version of Fuchsia that contains the most recent version of all other packages. This command line uses the “system_manifest” file from each of the modular directories, such as modular, modular_dev, and modular_tests.
cd $FUCHSIA_DIR fx build peridot:modular_all scripts/push-package.py out/debug-x64/package/modular*/system_manifest
fx publish
will take a package from the build and create a Fuchsia package manager package from a build package. It will then add the package to a local update respository which, by default, is put at ${FUCHSIA_BUILD_DIR}/amber-files
. It will also add the package content files to the update repository and name these file after their Merkle Root. If a package name is supplied to fx publish
, only that package will be processed. If no name is supplied, all the packages made by the build will be included.