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 @@ ...@@ -11,7 +11,6 @@
# NB: -n pkgnames MUST go first, if given # NB: -n pkgnames MUST go first, if given
error() { echo `basename $0`: $* >&2; exit 1; } error() { echo `basename $0`: $* >&2; exit 1; }
debug() { [ -n "$GLOBAL_VERBOSE" ] && echo `basename $0`: $* >&2; }
exit_handler() { exit_handler() {
local rc=$? local rc=$?
...@@ -28,8 +27,6 @@ dump_pkgnames() { ...@@ -28,8 +27,6 @@ dump_pkgnames() {
check_pkglist() { check_pkglist() {
fprofilelist="$1" fprofilelist="$1"
[ -f "$fprofilelist" ] || error "invalid packagelist filename: $fprofilelist" [ -f "$fprofilelist" ] || error "invalid packagelist filename: $fprofilelist"
debug "checking $fprofilelist against $favaillist"
# cleaning pkg list from comments, empty lines, # cleaning pkg list from comments, empty lines,
# splitting several pkgnames on the same line # splitting several pkgnames on the same line
sed -e '/^#/d' -e '/^[ ]*$/d' -e 's/ \+$//' -e 's/[ ]\+/\n/g' \ sed -e '/^#/d' -e '/^[ ]*$/d' -e 's/ \+$//' -e 's/[ ]\+/\n/g' \
...@@ -43,11 +40,9 @@ check_pkglist() { ...@@ -43,11 +40,9 @@ check_pkglist() {
fgrep '*' "$ftemp" > "$fpkgwildcards" fgrep '*' "$ftemp" > "$fpkgwildcards"
# return unavailable packages # return unavailable packages
debug "unavailable packagenames, if any:"
comm -23 "$fpkgnames" "$favaillist" > "$fpkgerrors" comm -23 "$fpkgnames" "$favaillist" > "$fpkgerrors"
# return unavailable wildcards # return unavailable wildcards
debug "unavailable wildcards, if any:"
while read i; do while read i; do
# replacing * with regexp's \.+ # replacing * with regexp's \.+
pattern="^`echo ${i#^} | sed -e '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