travis: fix show_files for cross targets.

This commit is contained in:
Juan RP 2015-04-20 11:39:39 +02:00
parent 5284a171c9
commit 3f6ee78aac
2 changed files with 6 additions and 2 deletions

View file

@ -28,7 +28,7 @@ script:
- common/travis/build.sh $BOOTSTRAP $ARCH
after_script:
- common/travis/show_files.sh
- common/travis/show_files.sh $BOOTSTRAP $ARCH
notifications:
email: false

View file

@ -2,10 +2,14 @@
#
# show_files.sh
if [ "$1" != "$2" ]; then
arch="-a $2"
fi
for pkg in $(cat /tmp/templates); do
for subpkg in $(xsubpkg $pkg); do
/bin/echo -e "\x1b[32mFiles of $subpkg:\x1b[0m"
./xbps-src -H $HOME/hostdir show-files "$pkg"
./xbps-src -H $HOME/hostdir $arch show-files "$pkg"
done
done