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