Commit dad8f98e authored by Anton Midyukov's avatar Anton Midyukov

check-pkg-list: Made unified error messages

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