Skip to content
Snippets Groups Projects

Improve OBS check for DoD

Open Walter Lozano requested to merge wip/wlozano/rebase-obs into main
2 unresolved threads
1 file
+ 12
7
Compare changes
  • Side-by-side
  • Inline
#!/bin/sh
COMPONENTS="target development sdk"
branch=${RELEASE:=v2026dev2}
for x in $(osc ls apertis:${branch}:target) ; do
osc buildinfo apertis:${branch}:target ${x} default x86_64
done | grep Debian | grep bdep > build-deps.txt
for c in $COMPONENTS ; do
for x in $(osc ls apertis:${branch}:$c) ; do
osc buildinfo apertis:${branch}:$c ${x} default x86_64
done | grep Debian | grep bdep > $c-build-deps.txt
cat build-deps.txt | sed 's,.*name="\([^"]*\)".*,\1,g' | sort | uniq > missing-bd
cat $c-build-deps.txt | sed 's,.*name="\([^"]*\)".*,\1,g' | sort | uniq > $c-missing-bd.txt
for x in $(cat missing-bd) ; do
apt-cache showsrc $x | grep 'Package:' | head -n1
done | cut -d' ' -f2 | sort | uniq > missing-bd-source
for x in $(cat $c-missing-bd.txt) ; do
apt-cache showsrc $x | grep 'Package:' | head -n1
done | cut -d' ' -f2 | sort | uniq > $c-missing-bd-source.txt
done
cat *-missing-bd-source.txt > missing-bd-source.txt
\ No newline at end of file
Loading