Commit dad8f98e authored by Anton Midyukov's avatar Anton Midyukov

check-pkg-list: Made unified error messages

parent db3892ab
......@@ -12,7 +12,10 @@
RET_ERROR=
error() { echo `basename $0`: $* >&2; exit 1; }
error() {
echo `basename $0`: $* >&2
exit 1
}
exit_handler() {
local rc=$?
......@@ -51,7 +54,7 @@ check_pkglist() {
grep -q "$pattern" "$favaillist" || echo "$i" >> "$fpkgerrors"
done < "$fpkgwildcards"
if [ -s "$fpkgerrors" ]; then
echo "Error: Packages are not available in $fprofilelist:" >&2
echo "** error: Packages are not available in $fprofilelist:" >&2
RET_ERROR=1
cat $fpkgerrors >&2
fi
......
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