livecd-openSUSE/pkg-diff.sh
Fabian Vogt 85cba414de Accepting request 741736 from home:favogt:branches:openSUSE:Factory:Live
- list-x11: Block libpeas-loader-python to avoid libpython2_7
- Fix pkg-diff for prjs with multiple repos
- Move xf86-video-vmware from list-common to list-{gnome,kde,xfce}

OBS-URL: https://build.opensuse.org/request/show/741736
OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Images:openSUSE-Tumbleweed/livecd-openSUSE?expand=0&rev=53
2019-10-22 10:52:39 +00:00

29 lines
778 B
Bash

#!/bin/bash
if [ $# -ne 2 ]; then
printf "Show a diff of installed packages in the various flavors.\nUsage: $0 project arch\n"
exit 1
fi
project=$1
arch=$2
fetch_pkglist() {
local project=$1
local package=$2
local repo=$3
local arch=$4
local binaryname=$(osc ls -b ${project} ${package} -a ${arch} -r ${repo} | grep .packages | xargs)
osc api /build/${project}/${repo}/${arch}/${package}/${binaryname} | awk -F\| '{ print $1 }' | sort -u
}
tmpdir=$(mktemp -d)
trap 'rm -rf ${tmpdir}' EXIT
for i in {x11,xfce,kde,gnome}; do
fetch_pkglist openSUSE:Factory:Live livecd-tumbleweed-$i images ${arch} > ${tmpdir}/list-old
fetch_pkglist ${project} livecd-tumbleweed-$i openSUSE_Tumbleweed ${arch} > ${tmpdir}/list-new
echo "$i"
diff -u ${tmpdir}/list-{old,new}
done