diff --git a/translation-update-upstream.in b/translation-update-upstream.in index ddff486..932c0c3 100644 --- a/translation-update-upstream.in +++ b/translation-update-upstream.in @@ -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