Imported Upstream version 14.38.4 32/94632/1
authorDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 1 Nov 2016 01:33:27 +0000 (10:33 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 1 Nov 2016 01:33:28 +0000 (10:33 +0900)
Change-Id: If1eca4485387ae15513164b4b3a126debe5661e0
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
VERSION.cmake
package/libzypp.changes
tests/parser/inifile/data/2.ini
tests/parser/inifile/iniparser_test.cc
zypp/parser/IniParser.cc

index 46c9884..0b5785d 100644 (file)
@@ -61,8 +61,8 @@
 SET(LIBZYPP_MAJOR "14")
 SET(LIBZYPP_COMPATMINOR "30")
 SET(LIBZYPP_MINOR "38")
-SET(LIBZYPP_PATCH "3")
+SET(LIBZYPP_PATCH "4")
 #
-# LAST RELEASED: 14.38.3 (30)
+# LAST RELEASED: 14.38.4 (30)
 # (The number in parenthesis is LIBZYPP_COMPATMINOR)
 #=======
index db69894..97a043d 100644 (file)
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Wed May  6 14:26:54 CEST 2015 - ma@suse.de
+
+- Fix repo alias containing ']' not handled correctly (bnc#929528)
+- version 14.38.4 (30)
+
+-------------------------------------------------------------------
 Tue May  5 14:33:23 CEST 2015 - ma@suse.de
 
 - Fix SEGV when dumping rpm header with epoch (bnc#929483)
index 049247a..36d21c8 100644 (file)
@@ -8,3 +8,5 @@ name1==foo
 name1= =foo
 name2=f=oo
 name3=foo=
+[te]st]
+name=foo
index 8857bd3..fb43929 100644 (file)
@@ -41,7 +41,7 @@ class WithSpacesTest : public IniParser
   virtual void consume( const std::string &section )
   {
     MIL << section << endl;
-    BOOST_CHECK(section == "base" || section == "equal");
+    BOOST_CHECK(section == "base" || section == "equal" || section == "te]st");
   }
 
   virtual void consume( const std::string &section, const std::string &key, const std::string &value )
index cdead1e..9958f66 100644 (file)
@@ -99,7 +99,7 @@ void IniParser::parse( const InputStream & input_r, const ProgressData::Receiver
 
     if (trimmed[0] == '[')
     {
-      std::string::size_type pos = trimmed.find(']');
+      std::string::size_type pos = trimmed.rfind(']');
       if ( pos != std::string::npos )
       {
        std::string section = trimmed.substr(1, pos-1);