fix
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/release-compare?expand=0&rev=5
This commit is contained in:
parent
de00617e16
commit
86d27f26e6
20
obsgendiff
20
obsgendiff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user