Hello community,

here is the log from the commit of package prison-qt5 for openSUSE:Factory 
checked in at 2019-05-21 10:34:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/prison-qt5 (Old)
 and      /work/SRC/openSUSE:Factory/.prison-qt5.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "prison-qt5"

Tue May 21 10:34:08 2019 rev:31 rq:703391 version:5.58.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/prison-qt5/prison-qt5.changes    2019-04-19 
21:25:22.843950379 +0200
+++ /work/SRC/openSUSE:Factory/.prison-qt5.new.5148/prison-qt5.changes  
2019-05-21 10:34:09.911329431 +0200
@@ -1,0 +2,10 @@
+Wed May 15 18:16:19 UTC 2019 - [email protected]
+
+- Update to 5.58.0
+  * New feature release
+  * For more details please see:
+  * https://www.kde.org/announcements/kde-frameworks-5.58.0.php
+- Changes since 5.57.0:
+  * Aztec: Fix padding if the last partial codeword is all one bits
+
+-------------------------------------------------------------------

Old:
----
  prison-5.57.0.tar.xz

New:
----
  prison-5.58.0.tar.xz

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

Other differences:
------------------
++++++ prison-qt5.spec ++++++
--- /var/tmp/diff_new_pack.DKmW8N/_old  2019-05-21 10:34:10.455329077 +0200
+++ /var/tmp/diff_new_pack.DKmW8N/_new  2019-05-21 10:34:10.455329077 +0200
@@ -19,13 +19,13 @@
 %define sonum   5
 %define rname prison
 %define _libname KF5Prison
-%define _tar_path 5.57
+%define _tar_path 5.58
 # Full KF5 version (e.g. 5.33.0)
 %{!?_kf5_version: %global _kf5_version %{version}}
 # Last major and minor KF5 version (e.g. 5.33)
 %{!?_kf5_bugfix_version: %define _kf5_bugfix_version %(echo %{_kf5_version} | 
awk -F. '{print $1"."$2}')}
 Name:           prison-qt5
-Version:        5.57.0
+Version:        5.58.0
 Release:        0
 Summary:        Barcode abstraction layer library
 License:        MIT

++++++ prison-5.57.0.tar.xz -> prison-5.58.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prison-5.57.0/CMakeLists.txt 
new/prison-5.58.0/CMakeLists.txt
--- old/prison-5.57.0/CMakeLists.txt    2019-04-07 09:21:36.000000000 +0200
+++ new/prison-5.58.0/CMakeLists.txt    2019-05-05 00:46:48.000000000 +0200
@@ -1,11 +1,11 @@
 cmake_minimum_required(VERSION 3.5)
 
-set(KF5_VERSION "5.57.0") # handled by release scripts
+set(KF5_VERSION "5.58.0") # handled by release scripts
 project(prison VERSION ${KF5_VERSION})
 
 # ECM setup
 include(FeatureSummary)
-find_package(ECM 5.57.0 NO_MODULE)
+find_package(ECM 5.58.0 NO_MODULE)
 set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake 
Modules." URL 
"https://projects.kde.org/projects/kdesupport/extra-cmake-modules";)
 feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND 
FATAL_ON_MISSING_REQUIRED_PACKAGES)
 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" "${ECM_MODULE_PATH}")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prison-5.57.0/autotests/aztecbarcodetest.cpp 
new/prison-5.58.0/autotests/aztecbarcodetest.cpp
--- old/prison-5.57.0/autotests/aztecbarcodetest.cpp    2019-04-07 
09:21:36.000000000 +0200
+++ new/prison-5.58.0/autotests/aztecbarcodetest.cpp    2019-05-05 
00:46:48.000000000 +0200
@@ -123,9 +123,12 @@
 
         BitVector in, out;
         QTest::newRow("emtpy") << in << out << 4;
-        in.appendMSB(0x3, 2); out.appendMSB(0xf, 4);
+        in.appendMSB(0x2, 2); out.appendMSB(0xB, 4);
         QTest::newRow("pad only") << in << out << 4;
         in.clear(); out.clear();
+        in.appendMSB(0x3, 2); out.appendMSB(0xE, 4);
+        QTest::newRow("pad only inverted") << in << out << 4;
+        in.clear(); out.clear();
         in.appendMSB(0xe0, 8); out.appendMSB(0xe13, 12);
         QTest::newRow("stuff and pad") << in << out << 4;
         in.clear(); out.clear();
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/prison-5.57.0/src/lib/aztecbarcode.cpp 
new/prison-5.58.0/src/lib/aztecbarcode.cpp
--- old/prison-5.57.0/src/lib/aztecbarcode.cpp  2019-04-07 09:21:36.000000000 
+0200
+++ new/prison-5.58.0/src/lib/aztecbarcode.cpp  2019-05-05 00:46:48.000000000 
+0200
@@ -576,9 +576,24 @@
         res.appendBit(input.at(i++));
     }
 
-    // pad to nearest code word boundary
+    // check if we are code word aligned already
+    const auto trailingBits = res.size() % codeWordSize;
+    if (!trailingBits) { // nothing to pad
+        return res;
+    }
+
+    // pad with ones to nearest code word boundary
+    // last bit has to be zero if we'd otherwise would have all ones though
+    bool allOnes = true;
+    for (int i = res.size() - trailingBits; i < res.size(); ++i) {
+        allOnes &= res.at(i);
+    }
     while (res.size() % codeWordSize) {
-        res.appendBit(true);
+        if ((res.size() % codeWordSize) == (codeWordSize - 1)) {
+            res.appendBit(allOnes ? false : true);
+        } else {
+            res.appendBit(true);
+        }
     }
 
     return res;


Reply via email to