# Macro to be called if .po files are shipped as tar ball.
#
# _translation_set_basename: Serves two purposes; a) the stem of the
-# default tarball %{_translation_set_basename}-po.tar.bz2 unless its over
-# riden by -DUSE_TRANSLATION_SET; b) the basename of the .gmo files.
+# default tarball %{_translation_set_basename}-po.tar.bz2, optionally
+# overlayed by -DUSE_TRANSLATION_SET; b) the basename of the .gmo files.
#
# We expect a po-file tarball to unpack the .po file to the current
# directory!
SET( USE_TRANSLATION_SET ${_translation_set_basename} )
ENDIF( NOT USE_TRANSLATION_SET )
- SET( TRANSLATION_SET "${USE_TRANSLATION_SET}-po.tar.bz2" )
- MESSAGE( STATUS "Translation set: ${TRANSLATION_SET}" )
+ SET( DEFAULT_TRANSLATION_SET "${_translation_set_basename}-po.tar.bz2" )
+ SET( OVERLAY_TRANSLATION_SET "${USE_TRANSLATION_SET}-po.tar.bz2" )
+
+ MESSAGE( STATUS "Translation set: ${OVERLAY_TRANSLATION_SET}" )
+
+ EXECUTE_PROCESS(
+ COMMAND tar tfj ${CMAKE_CURRENT_SOURCE_DIR}/${DEFAULT_TRANSLATION_SET}
+ OUTPUT_VARIABLE TRANSLATION_SET_CONTENT_D
+ )
+ EXECUTE_PROCESS(
+ COMMAND tar tfj ${CMAKE_CURRENT_SOURCE_DIR}/${OVERLAY_TRANSLATION_SET}
+ OUTPUT_VARIABLE TRANSLATION_SET_CONTENT_O
+ )
# For those not familiar with 'sed': the tarball might list './' and './*.po'.
# We process just the '*.po' lines and strip off any leading './'.
EXECUTE_PROCESS(
- COMMAND tar tfj ${CMAKE_CURRENT_SOURCE_DIR}/${TRANSLATION_SET}
+ COMMAND echo ${TRANSLATION_SET_CONTENT_D} ${TRANSLATION_SET_CONTENT_O}
COMMAND sed -n "/\\.po$/s%.*/%%p"
+ COMMAND sort -u
COMMAND awk "{printf $1\";\"}"
OUTPUT_VARIABLE TRANSLATION_SET_CONTENT
)
# Create 'LANG.po's from po.tar.bz2
ADD_CUSTOM_COMMAND(
OUTPUT ${TRANSLATION_SET_CONTENT}
- COMMAND tar xfj ${CMAKE_CURRENT_SOURCE_DIR}/${TRANSLATION_SET}
- COMMAND sed -i '/^msgid/s/do not forbid installation of %s/remove lock to allow installation of %s/' *.po
- COMMAND sed -i '/^msgid/s/do not keep %s installed/remove lock to allow removal of %s/' *.po
- DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${TRANSLATION_SET}
+ COMMAND tar xfj ${CMAKE_CURRENT_SOURCE_DIR}/${DEFAULT_TRANSLATION_SET}
+ COMMAND tar xfj ${CMAKE_CURRENT_SOURCE_DIR}/${OVERLAY_TRANSLATION_SET}
+ DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${OVERLAY_TRANSLATION_SET} ${CMAKE_CURRENT_SOURCE_DIR}/${DEFAULT_TRANSLATION_SET}
)
# LANG.po ->msgfmt-> LANG.gmo
-------------------------------------------------------------------
+Fri May 8 11:44:44 CEST 2015 - ma@suse.de
+
+- gcc5 fixes
+- Fix repo alias containing ']' not handled correctly (bnc#929528)
+- Fix SEGV when dumping rpm header with epoch (bnc#929483)
+- version 15.1.2 (1)
+
+-------------------------------------------------------------------
Mon Apr 27 14:43:53 CEST 2015 - ma@suse.de
- PubliKey: fix reference to temporary data
//
std::ostream & RpmHeader::dumpOn( std::ostream & str ) const
{
- return BinHeader::dumpOn( str ) << '{' << tag_name() << "-"
- << (tag_epoch()==0?"":(tag_epoch()+":"))
- << tag_version()
- << (tag_release().empty()?"":(std::string("-")+tag_release()))
- << ( isSrc() ? ".src}" : "}");
+ BinHeader::dumpOn( str ) << '{' << tag_name() << "-";
+ if ( tag_epoch() != 0 )
+ str << tag_epoch() << ":";
+ str << tag_version()
+ << (tag_release().empty()?"":(std::string("-")+tag_release()))
+ << ( isSrc() ? ".src}" : "}");
+ return str;
}