[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    l10n-kf5/scripts
From:       Albert Astals Cid <null () kde ! org>
Date:       2018-01-11 19:09:27
Message-ID: E1eZiEB-0002oW-H6 () code ! kde ! org
[Download RAW message or body]

SVN commit 1508411 by aacid:

Don't destroy the original xml file if itstool fails


 M  +5 -0      extract_metainfo.sh  


--- trunk/l10n-kf5/scripts/extract_metainfo.sh #1508410:1508411
@@ -18,6 +18,11 @@
 
   # create pot file foo.[appdata|metadata].xml -> foo.[appdata|metadata].pot
   itstool -i $ASMETAINFOITS -o $podir/$dataname.pot $tmpxmlfile
+  if [ $? -ne 0 ]; then
+    echo "itstool failed over $metainfo_file"
+    rm -f $podir/$dataname.pot
+    continue
+  fi
   esc_tmpxmlfile=$(echo $tmpxmlfile|sed -e 's/[]\/()$*.^|[]/\\&/g')
   sed -i "/^#:/s/$esc_tmpxmlfile/$metainfo_file_basename/" $podir/$dataname.pot
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic