eza: update to 0.19.3
[void-pkg.git] / common / travis / xpkgdiff.sh
blobce042c1628bfca43d7ca4f1b5acbe1c8e0ece335
1 #!/bin/sh
3 # xpkgdiff.sh
5 export XBPS_TARGET_ARCH="$2" XBPS_DISTDIR=/hostrepo XBPS_HOSTDIR="$HOME/hostdir"
6 export DIFF='diff --unified=0 --report-identical-files --suppress-common-lines
7 --color=always --label REPO --label BUILT'
8 ARGS="-a $2 -R https://repo-ci.voidlinux.org/current"
10 while read -r pkg; do
11 for subpkg in $(xsubpkg $pkg); do
12 if xbps-query --repository=$HOME/hostdir/binpkgs/bootstrap \
13 --repository=$HOME/hostdir/binpkgs \
14 --repository=$HOME/hostdir/binpkgs/nonfree \
15 -i "$subpkg" >&/dev/null; then
16 /bin/echo -e "\x1b[34mFile Diff of $subpkg:\x1b[0m"
17 xpkgdiff $ARGS -f $subpkg
18 /bin/echo -e "\x1b[34mMetadata Diff of $subpkg:\x1b[0m"
19 xpkgdiff $ARGS -S $subpkg
20 /bin/echo -e "\x1b[34mDependency Diff of $subpkg:\x1b[0m"
21 xpkgdiff $ARGS -x $subpkg
22 else
23 /bin/echo -e "\x1b[33m$subpkg wasn't found\x1b[0m"
25 done
26 done < /tmp/templates