summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-16 12:01:29 +0100
committerErich Eckner <git@eckner.net>2017-11-16 12:01:29 +0100
commit2952e1298dd8c73c5b2442dc309eaec450d04b7d (patch)
tree3036d762151a68a9d69253f0bb569370288ee25c /bin
parent8067ad924136c771eb4976279c9f8b6b75b1258b (diff)
downloadbuilder-2952e1298dd8c73c5b2442dc309eaec450d04b7d.tar.xz
bin/show-dependencies: different color for blocked packages
Diffstat (limited to 'bin')
-rwxr-xr-xbin/show-dependencies14
1 files changed, 9 insertions, 5 deletions
diff --git a/bin/show-dependencies b/bin/show-dependencies
index a5139c0..8677f99 100755
--- a/bin/show-dependencies
+++ b/bin/show-dependencies
@@ -323,8 +323,10 @@ for target_package in "$@"; do
while read -r pkg rev mod_rev repo; do
if [ -f "${work_dir}/package-states/${pkg}.${rev}.${mod_rev}.${repo}.broken" ]; then
printf '1 broken-build-list-package %s\n' "${pkg}"
+ elif [ -f "${work_dir}/package-states/${pkg}.${rev}.${mod_rev}.${repo}.blocked" ]; then
+ printf '2 blocked-build-list-package %s\n' "${pkg}"
else
- printf '2 build-list-package %s\n' "${pkg}"
+ printf '3 build-list-package %s\n' "${pkg}"
fi
done >> \
"${tmp_dir}/knots"
@@ -337,7 +339,7 @@ for target_package in "$@"; do
} | \
sort | \
uniq -d | \
- xargs -r printf '3 deletion-list-package %s\n' >> \
+ xargs -r printf '4 deletion-list-package %s\n' >> \
"${tmp_dir}/knots"
{
@@ -349,7 +351,7 @@ for target_package in "$@"; do
} | \
sort | \
uniq -d | \
- xargs -r printf '4 split-package %s\n' >> \
+ xargs -r printf '5 split-package %s\n' >> \
"${tmp_dir}/knots"
{
@@ -360,7 +362,7 @@ for target_package in "$@"; do
} | \
sort | \
uniq -d | \
- xargs -r printf '5 package %s\n' >> \
+ xargs -r printf '6 package %s\n' >> \
"${tmp_dir}/knots"
{
@@ -372,7 +374,7 @@ for target_package in "$@"; do
} | \
sort | \
uniq -d | \
- xargs -r printf '6 group %s\n' >> \
+ xargs -r printf '7 group %s\n' >> \
"${tmp_dir}/knots"
tr ' ' '\n' < \
@@ -446,6 +448,8 @@ for target_package in "$@"; do
while read -r who what; do
if [ "${what}" = 'broken-build-list-package' ]; then
color='#ff0000'
+ elif [ "${what}" = 'blocked-build-list-package' ]; then
+ color='#d00000'
elif [ "${what}" = 'build-list-package' ]; then
color='#800000'
elif [ "${what}" = 'deletion-list-package' ]; then