Adrian Schröter 2020-08-19 12:59:51 +00:00 committed by Git OBS Bridge
parent de00617e16
commit 86d27f26e6

View File

@ -37,14 +37,18 @@ done
# create changelogs based on the packaged rpms
mkdir -p $out/{changelogs,disturl}
for report in /.build.packages/OTHER/*.report; do
sed -n -e 's,.*<binary .*obs://\(.*\)</binary>,\1,p' "$report" | while read rpm; do
name="${rpm##*/}"
name="${name%-*}"
name="${name%-*}"
# construct the full file name
file=`find /.build.packages/SOURCES/repos/$rpm`
rpm -qp "$file" --changelog 2>/dev/null > $out/changelogs/${name}
rpm -qp "$file" --qf '%{DISTURL}\n' 2>/dev/null > $out/disturl/${name}
sed -n -e 's,.*<binary .*obs://\(.*\)</binary>,\1,p' "$report" | while read binary; do
rpm="${binary##*/}"
name="${rpm%-*}"
name="${name%-*}"
# only the worker knows where it was downloaded from....
# the disturl may contained a different build repo
file=`find /.build.packages/SOURCES/repos/ -name $rpm`
rpm -qp "$file" --changelog 2>/dev/null > $out/changelogs/${name}
rpm -qp "$file" --qf '%{DISTURL}\n' 2>/dev/null > $out/disturl/${name}
done
# create archive