PACKAGE_WEIGHTS variable in the Makefile takes care of setting this
for build targets in the Makefile. However, we'll need the
packageWeightsPath set always, even for build-targets not in the
Makefile, such as when building a specific package.
Change-Id: Ib5cf247d1d929731bc136ecc308c1c079a6eb029
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6187
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Bo Gan <ganb@vmware.com>
... | ... |
@@ -53,7 +53,8 @@ def main(): |
53 | 53 |
default=False, action="store_true") |
54 | 54 |
parser.add_argument("-bd", "--publish-build-dependencies", dest="publishBuildDependencies", |
55 | 55 |
default=False) |
56 |
- parser.add_argument("-pw", "--package-weights-path", dest="packageWeightsPath", default=None) |
|
56 |
+ parser.add_argument("-pw", "--package-weights-path", dest="packageWeightsPath", |
|
57 |
+ default="../../common/data/packageWeights.json") |
|
57 | 58 |
parser.add_argument("-bt", "--build-type", dest="pkgBuildType", choices=['chroot', 'container'], default="chroot") |
58 | 59 |
parser.add_argument("-F", "--kat-build", dest="katBuild", default=None) |
59 | 60 |
parser.add_argument("-pj", "--packages-json-input", dest="pkgJsonInput", default=None) |