Skip to content

Commit 6fa3c8b

Browse files
committed
new helper to list all failed packages quickly
1 parent 9babeea commit 6fa3c8b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

scripts/show-failed-packages.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/sh
2+
3+
distro=$1
4+
if [ -z "$distro" ]; then
5+
distro=bookworm
6+
fi
7+
8+
REPO=https://raw.githubusercontent.com/v4hn/ros-o-builder/refs/heads/$distro-one-unstable
9+
10+
# csv header is
11+
# Package,Version,URL,Status,Bloom Log,Build Log,Deb File,Installed Files
12+
13+
curl -s $REPO/pkg_build_status.csv | tail -n+2 | awk -F, -v repo=$REPO/repository '
14+
$4 != "success" {
15+
if($4 == "failed-bloom-generate"){
16+
report=$5;
17+
} else {
18+
report=$6;
19+
}
20+
print("Package: " $1 "\nLog: " repo "/" report "\nUpstream: " $3 "\n---")
21+
}
22+
'

0 commit comments

Comments
 (0)