Commit 2c3415ff authored by Anton Midyukov's avatar Anton Midyukov

bin/check-pkg-list: clean debug messages

There is little use, but a lot of noise.
parent d0bc4229
......@@ -11,7 +11,6 @@
# NB: -n pkgnames MUST go first, if given
error() { echo `basename $0`: $* >&2; exit 1; }
debug() { [ -n "$GLOBAL_VERBOSE" ] && echo `basename $0`: $* >&2; }
exit_handler() {
local rc=$?
......@@ -28,8 +27,6 @@ dump_pkgnames() {
check_pkglist() {
fprofilelist="$1"
[ -f "$fprofilelist" ] || error "invalid packagelist filename: $fprofilelist"
debug "checking $fprofilelist against $favaillist"
# cleaning pkg list from comments, empty lines,
# splitting several pkgnames on the same line
sed -e '/^#/d' -e '/^[ ]*$/d' -e 's/ \+$//' -e 's/[ ]\+/\n/g' \
......@@ -43,11 +40,9 @@ check_pkglist() {
fgrep '*' "$ftemp" > "$fpkgwildcards"
# return unavailable packages
debug "unavailable packagenames, if any:"
comm -23 "$fpkgnames" "$favaillist" > "$fpkgerrors"
# return unavailable wildcards
debug "unavailable wildcards, if any:"
while read i; do
# replacing * with regexp's \.+
pattern="^`echo ${i#^} | sed -e 's/\*/.\\\\+/'`$"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment