tazpkg annotate modules/bugs @ rev 955

modules/search: allow search file with dash at start: tazpkg -sf "-spi"
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Dec 22 00:02:54 2017 +0200 (2017-12-22)
parents d6cbd0c5f273
children
rev   line source
al@844 1 #!/bin/sh
al@844 2 # TazPkg - Tiny autonomous zone packages manager, hg.slitaz.org/tazpkg
al@844 3 # bugs - TazPkg module
al@844 4 # Show known bugs in package(s)
al@844 5
al@844 6
al@844 7 # Connect function libraries
al@844 8 . /lib/libtaz.sh
al@844 9
al@844 10 # Get TazPkg working environment
al@844 11 . @@MODULES@@/getenv
al@844 12
al@844 13
al@844 14
al@844 15
al@844 16 cd "$INSTALLED"
al@844 17
al@844 18 LIST=$@
al@844 19 [ -z "$LIST" ] && LIST=$(ls)
al@844 20
al@844 21 MSG=$(_n 'No known bugs.')
al@844 22
al@844 23 title 'Known bugs in packages'
al@844 24
al@844 25 for pkg in $LIST; do
al@844 26 unset BUGS EXTRAVERSION
al@950 27 . ./$pkg/receipt
al@844 28
al@844 29 if [ -n "$BUGS" ]; then
al@844 30 MSG=$(_n 'Bug list completed')
al@844 31 newline
al@844 32 _ 'Bugs in package "%s" version %s:' "$PACKAGE" "$VERSION$EXTRAVERSION"
al@844 33 echo -e " $BUGS\n"
al@844 34 fi
al@844 35 done
al@844 36
al@844 37 footer "$MSG"