Stanislav Brabec 2011-09-07 14:12:07 +00:00 committed by Git OBS Bridge
parent c4cd47efa8
commit 4b853b975c

View File

@ -60,8 +60,9 @@ else
fi
POT_NOT_UNIQUE=false
MISSING=true
NO_POT=true
for POT in *.pot ; do
MISSING=true
if $POT_NOT_UNIQUE ; then
echo "ERROR: Directory $DIR contains more than one .pot file."
exit 1
@ -139,13 +140,17 @@ for POT in *.pot ; do
done
MISSING=false
fi
if $MISSING ; then
echo "WARNING: Missing $DOMAIN in translation-update-upstream configuration! No updates available."
fi
else
echo "ERROR: Package translation-update-upstream is not installed. Please update your BuildRequires!"
exit 1
fi
fi
NO_POT=false
done
if $MISSING ; then
echo "ERROR: Pot file was not created. Translation update failed!"
if $NO_POT ; then
echo "ERROR: Pot file was not created. Please fix or set command line arguments properly!"
exit 1
fi