[opensuse-translation-commit] r93555 - trunk/lcn/50-etc
Author: minton Date: 2015-10-10 07:35:06 +0200 (Sat, 10 Oct 2015) New Revision: 93555 Modified: trunk/lcn/50-etc/i18n_stats_html.sh Log: workaround for negative total number of records in invalid pot files Modified: trunk/lcn/50-etc/i18n_stats_html.sh =================================================================== --- trunk/lcn/50-etc/i18n_stats_html.sh 2015-10-10 05:23:29 UTC (rev 93554) +++ trunk/lcn/50-etc/i18n_stats_html.sh 2015-10-10 05:35:06 UTC (rev 93555) @@ -304,6 +304,7 @@ POTFILENAME=`basename $POTFILE|sed 's/\.pot//'` #Determine desired po filename based on pot filename and count its stats POTALL=$((`msgattrib --no-obsolete --clear-previous --force-po $POTFILE | grep -c 'msgid '`-1)) + [ $POTALL -lt 0 ]&&POTALL=0; if [ -f $BRANCH_PATH/$projdir/$LANG_CODE/po/$POTFILENAME.$LANG_CODE.po ] then POFILE="$BRANCH_PATH/$projdir/$LANG_CODE/po/$POTFILENAME.$LANG_CODE.po"
participants (1)
-
minton@svn2.opensuse.org