Adrian Schröter 2020-08-19 12:14:31 +00:00 committed by Git OBS Bridge
parent ddb8b97b48
commit de00617e16
2 changed files with 12 additions and 8 deletions

View File

@ -36,14 +36,13 @@ done
# create changelogs based on the packaged rpms
mkdir -p $out/{changelogs,disturl}
for packages in /.build.packages/KIWI/*.packages; do
cat "$packages" | while read line; do
IFS='|' read -r -a a <<< "$line"
name="${a[0]}"
rpm="${name}.rpm"
# only the worker knows where it was downloaded from....
file=`find /.build.packages/SOURCES/repos/ -name $rpm`
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}
done

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Aug 19 09:13:35 UTC 2020 - Adrian Schröter <adrian@suse.de>
- running based on .report instead of .packages files
-------------------------------------------------------------------
Mon Feb 3 14:11:03 UTC 2020 - Adrian Schröter <adrian@suse.de>