tazpkg view modules/bugs @ rev 884

Module 'check': fix to work with $root; start to add tests
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Dec 05 16:14:14 2015 +0200 (2015-12-05)
parents
children 4802158453e1
line source
1 #!/bin/sh
2 # TazPkg - Tiny autonomous zone packages manager, hg.slitaz.org/tazpkg
3 # bugs - TazPkg module
4 # Show known bugs in package(s)
7 # Connect function libraries
8 . /lib/libtaz.sh
10 # Get TazPkg working environment
11 . @@MODULES@@/getenv
16 cd "$INSTALLED"
18 LIST=$@
19 [ -z "$LIST" ] && LIST=$(ls)
21 MSG=$(_n 'No known bugs.')
23 title 'Known bugs in packages'
25 for pkg in $LIST; do
26 unset BUGS EXTRAVERSION
27 . "$pkg/receipt"
29 if [ -n "$BUGS" ]; then
30 MSG=$(_n 'Bug list completed')
31 newline
32 _ 'Bugs in package "%s" version %s:' "$PACKAGE" "$VERSION$EXTRAVERSION"
33 echo -e " $BUGS\n"
34 fi
35 done
37 footer "$MSG"