Commit 02765ae2 authored by Luca Giambonini's avatar Luca Giambonini

added new parameter to include also the makedeps as part of the order list

the packages are now ordered based on the deps and makedeps
parent 25b3a66e
......@@ -173,7 +173,7 @@ function sort_packages_by_dependency() {
#done
#PACKAGES=("${sorted_packages[@]}")
sorted_packages=$(python2 ./_gitlab-ci-scripts/lib/rebuildlist-order.py ${PACKAGES[@]})
sorted_packages=$(python2 ./_gitlab-ci-scripts/lib/rebuildlist-order.py -i ${PACKAGES[@]})
PACKAGES=($sorted_packages)
}
......
......@@ -121,6 +121,8 @@ def main():
help="Show only packages which have circular dependencies.")
parser.add_option('-m', '--makedeps', action="store_true", dest="makedeps",
help="Automatically add makedeps to package list.")
parser.add_option('-i', '--includemakedeps', action="store_true", dest="includemakedeps",
help="Include the makedeps in the dependency tree")
parser.add_option('-a', '--abs', dest="abspath", nargs=1,
help="Path to ABS.")
......@@ -182,6 +184,9 @@ def main():
Q.appendleft(makedep)
M.add(makedep)
else:
if options.includemakedeps:
for i in makedeps:
deps.add(i)
G[pkg] = deps & pkgs
D[pkg] = set()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment