Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package belcard for openSUSE:Factory checked 
in at 2022-05-04 15:11:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/belcard (Old)
 and      /work/SRC/openSUSE:Factory/.belcard.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "belcard"

Wed May  4 15:11:01 2022 rev:13 rq:974793 version:5.1.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/belcard/belcard.changes  2022-02-02 
22:45:02.074059309 +0100
+++ /work/SRC/openSUSE:Factory/.belcard.new.1538/belcard.changes        
2022-05-04 15:11:23.844190232 +0200
@@ -1,0 +2,7 @@
+Wed Apr 27 04:52:10 UTC 2022 - Giacomo Comes <[email protected]>
+
+- Update to version 5.1.12:
+  * use fold and unfold from bctoolbox utils
+- revert license tag change
+
+-------------------------------------------------------------------

Old:
----
  belcard-5.0.67.tar.bz2

New:
----
  belcard-5.1.12.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ belcard.spec ++++++
--- /var/tmp/diff_new_pack.4gZoj6/_old  2022-05-04 15:11:24.320190818 +0200
+++ /var/tmp/diff_new_pack.4gZoj6/_new  2022-05-04 15:11:24.324190822 +0200
@@ -19,10 +19,10 @@
 %define soname  libbelcard
 %define sover   1
 Name:           belcard
-Version:        5.0.67
+Version:        5.1.12
 Release:        0
 Summary:        C++ library to manipulate vCard standard format files
-License:        GPL-3.0-only
+License:        GPL-3.0-or-later
 Group:          Development/Languages/C and C++
 URL:            https://linphone.org/
 Source:         
https://gitlab.linphone.org/BC/public/belcard/-/archive/%{version}/%{name}-%{version}.tar.bz2

++++++ belcard-5.0.67.tar.bz2 -> belcard-5.1.12.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/belcard-5.0.67/src/belcard_utils.cpp 
new/belcard-5.1.12/src/belcard_utils.cpp
--- old/belcard-5.0.67/src/belcard_utils.cpp    2021-08-24 17:20:15.000000000 
+0200
+++ new/belcard-5.1.12/src/belcard_utils.cpp    2021-10-14 18:33:04.000000000 
+0200
@@ -18,6 +18,7 @@
 
 #include "belcard/belcard_utils.hpp"
 #include "bctoolbox/logging.h"
+#include "bctoolbox/utils.hh"
 
 #include <string.h>
 #include <iostream>
@@ -27,47 +28,11 @@
 using namespace::std;
 
 string belcard_fold(const string &input) {
-       string output = input;
-       size_t crlf = 0;
-       size_t next_crlf = 0;
-       const char *endline = "\r\n";
-       
-       while (next_crlf != string::npos) {
-               next_crlf = output.find(endline, crlf);
-               if (next_crlf != string::npos) {
-                       if (next_crlf - crlf > 75) {
-                               output.insert(crlf + 74, "\r\n ");
-                               crlf += 76;
-                       } else {
-                               crlf = next_crlf + 2;
-                       }
-               }
-       }
-       
-       return output;
+       return bctoolbox::Utils::fold(input);
 }
 
 string belcard_unfold(const string &input) {
-       string output = input;
-       const char *endline = "\r\n";
-       size_t crlf = output.find(endline);
-       
-       if (crlf == string::npos) {
-               endline = "\n";
-               crlf = output.find(endline);
-       }
-       
-       while (crlf != string::npos) {
-               if (isspace(output[crlf + strlen(endline)])) {
-                       output.erase(crlf, strlen(endline) + 1);
-               } else {
-                       crlf += strlen(endline);
-               }
-               
-               crlf = output.find(endline, crlf);
-       }
-       
-       return output;
+       return bctoolbox::Utils::unfold(input);
 }
 
 string belcard_read_file(const string &filename) {

Reply via email to