tazpkg diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/modules/bugs Sat Dec 05 16:14:14 2015 +0200 1.3 @@ -0,0 +1,37 @@ 1.4 +#!/bin/sh 1.5 +# TazPkg - Tiny autonomous zone packages manager, hg.slitaz.org/tazpkg 1.6 +# bugs - TazPkg module 1.7 +# Show known bugs in package(s) 1.8 + 1.9 + 1.10 +# Connect function libraries 1.11 +. /lib/libtaz.sh 1.12 + 1.13 +# Get TazPkg working environment 1.14 +. @@MODULES@@/getenv 1.15 + 1.16 + 1.17 + 1.18 + 1.19 +cd "$INSTALLED" 1.20 + 1.21 +LIST=$@ 1.22 +[ -z "$LIST" ] && LIST=$(ls) 1.23 + 1.24 +MSG=$(_n 'No known bugs.') 1.25 + 1.26 +title 'Known bugs in packages' 1.27 + 1.28 +for pkg in $LIST; do 1.29 + unset BUGS EXTRAVERSION 1.30 + . "$pkg/receipt" 1.31 + 1.32 + if [ -n "$BUGS" ]; then 1.33 + MSG=$(_n 'Bug list completed') 1.34 + newline 1.35 + _ 'Bugs in package "%s" version %s:' "$PACKAGE" "$VERSION$EXTRAVERSION" 1.36 + echo -e " $BUGS\n" 1.37 + fi 1.38 +done 1.39 + 1.40 +footer "$MSG"