Fabian Vogt
293fe7b2c1
- Replace rest_cd_* patterns with direct package mentions - Some cleanups - Don't install cracklib-dict-full on x11 - Don't ignore snapper on xfce, needed for the installer - Ignore usb_modeswitch, fprintd, open-vm-tools - Add pkg_diff.sh to show list of effective package changes OBS-URL: https://build.opensuse.org/request/show/689829 OBS-URL: https://build.opensuse.org/package/show/Virtualization:Appliances:Images:openSUSE-Tumbleweed/livecd-openSUSE?expand=0&rev=28
29 lines
767 B
Bash
29 lines
767 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} | 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
|