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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user