Fixed MISSING x NO_POT mess.
OBS-URL: https://build.opensuse.org/package/show/Base:System/translation-update-upstream?expand=0&rev=32
This commit is contained in:
parent
c4cd47efa8
commit
4b853b975c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user