Hello community, here is the log from the commit of package libfilezilla for openSUSE:Factory checked in at 2019-11-06 13:58:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libfilezilla (Old) and /work/SRC/openSUSE:Factory/.libfilezilla.new.2990 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libfilezilla" Wed Nov 6 13:58:00 2019 rev:27 rq:745236 version:0.18.2 Changes: -------- --- /work/SRC/openSUSE:Factory/libfilezilla/libfilezilla.changes 2019-08-27 10:21:01.691940998 +0200 +++ /work/SRC/openSUSE:Factory/.libfilezilla.new.2990/libfilezilla.changes 2019-11-06 13:58:05.592282810 +0100 @@ -1,0 +2,7 @@ +Mon Nov 4 16:55:19 UTC 2019 - [email protected] + +- Update to 0.18.2 + * New features: + - Added operator== and != to fz::uri + +------------------------------------------------------------------- Old: ---- libfilezilla-0.18.1.tar.bz2 New: ---- libfilezilla-0.18.2.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libfilezilla.spec ++++++ --- /var/tmp/diff_new_pack.dsJsPD/_old 2019-11-06 13:58:06.212283459 +0100 +++ /var/tmp/diff_new_pack.dsJsPD/_new 2019-11-06 13:58:06.216283464 +0100 @@ -20,7 +20,7 @@ %define libname %{name}%{major} %define develname %{name}-devel Name: libfilezilla -Version: 0.18.1 +Version: 0.18.2 Release: 0 Summary: C++ library for filezilla License: GPL-2.0-or-later ++++++ libfilezilla-0.18.1.tar.bz2 -> libfilezilla-0.18.2.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.18.1/NEWS new/libfilezilla-0.18.2/NEWS --- old/libfilezilla-0.18.1/NEWS 2019-08-15 09:39:32.000000000 +0200 +++ new/libfilezilla-0.18.2/NEWS 2019-09-16 15:46:58.000000000 +0200 @@ -1,3 +1,7 @@ +0.18.2 (2019-09-16) + ++ Added operator== and != to fz::uri + 0.18.1 (2019-08-14) + Added fz::buffer::resize diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.18.1/configure new/libfilezilla-0.18.2/configure --- old/libfilezilla-0.18.1/configure 2019-08-15 09:43:49.000000000 +0200 +++ new/libfilezilla-0.18.2/configure 2019-09-16 15:47:58.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for libfilezilla 0.18.1. +# Generated by GNU Autoconf 2.69 for libfilezilla 0.18.2. # # Report bugs to <[email protected]>. # @@ -590,8 +590,8 @@ # Identity of this package. PACKAGE_NAME='libfilezilla' PACKAGE_TARNAME='libfilezilla' -PACKAGE_VERSION='0.18.1' -PACKAGE_STRING='libfilezilla 0.18.1' +PACKAGE_VERSION='0.18.2' +PACKAGE_STRING='libfilezilla 0.18.2' PACKAGE_BUGREPORT='[email protected]' PACKAGE_URL='https://lib.filezilla-project.org/' @@ -1441,7 +1441,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libfilezilla 0.18.1 to adapt to many kinds of systems. +\`configure' configures libfilezilla 0.18.2 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1512,7 +1512,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libfilezilla 0.18.1:";; + short | recursive ) echo "Configuration of libfilezilla 0.18.2:";; esac cat <<\_ACEOF @@ -1663,7 +1663,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libfilezilla configure 0.18.1 +libfilezilla configure 0.18.2 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2108,7 +2108,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libfilezilla $as_me 0.18.1, which was +It was created by libfilezilla $as_me 0.18.2, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2974,7 +2974,7 @@ # Define the identity of the package. PACKAGE='libfilezilla' - VERSION='0.18.1' + VERSION='0.18.2' cat >>confdefs.h <<_ACEOF @@ -22208,7 +22208,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libfilezilla $as_me 0.18.1, which was +This file was extended by libfilezilla $as_me 0.18.2, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -22275,7 +22275,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -libfilezilla config.status 0.18.1 +libfilezilla config.status 0.18.2 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.18.1/configure.ac new/libfilezilla-0.18.2/configure.ac --- old/libfilezilla-0.18.1/configure.ac 2019-08-15 09:39:38.000000000 +0200 +++ new/libfilezilla-0.18.2/configure.ac 2019-09-16 15:46:58.000000000 +0200 @@ -1,4 +1,4 @@ -AC_INIT([libfilezilla],[0.18.1],[[email protected]],[],[https://lib.filezilla-project.org/]) +AC_INIT([libfilezilla],[0.18.2],[[email protected]],[],[https://lib.filezilla-project.org/]) AC_CONFIG_HEADERS([lib/libfilezilla/private/config.hpp]) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_AUX_DIR(config) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.18.1/lib/libfilezilla/uri.hpp new/libfilezilla-0.18.2/lib/libfilezilla/uri.hpp --- old/libfilezilla-0.18.1/lib/libfilezilla/uri.hpp 2019-06-17 15:31:43.000000000 +0200 +++ new/libfilezilla-0.18.2/lib/libfilezilla/uri.hpp 2019-09-16 15:46:58.000000000 +0200 @@ -49,6 +49,7 @@ std::string get_authority(bool with_userinfo) const; bool empty() const; + explicit operator bool() const { return !empty(); } /// Often refered to as the protocol prefix, e.g. ftp:// std::string scheme_; @@ -93,6 +94,11 @@ * If the URI is not relative or from a different scheme, it is not changed. */ void resolve(uri const& base); + + bool operator==(uri const& arg) const; + + bool operator!=(uri const& arg) const { return !(*this == arg); } + private: bool FZ_PRIVATE_SYMBOL parse_authority(std::string && authority); }; @@ -116,12 +122,12 @@ void remove(std::string const& key); std::string& operator[](std::string const& key); - std::map<std::string, std::string, fz::less_insensitive_ascii> const& pairs() const { return segments_; } + std::map<std::string, std::string, less_insensitive_ascii> const& pairs() const { return segments_; } bool empty() const { return segments_.empty(); } private: - std::map<std::string, std::string, fz::less_insensitive_ascii> segments_; + std::map<std::string, std::string, less_insensitive_ascii> segments_; }; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.18.1/lib/mutex.cpp new/libfilezilla-0.18.2/lib/mutex.cpp --- old/libfilezilla-0.18.1/lib/mutex.cpp 2017-05-25 20:35:14.000000000 +0200 +++ new/libfilezilla-0.18.2/lib/mutex.cpp 2019-09-16 15:46:58.000000000 +0200 @@ -129,7 +129,7 @@ if (ms < 0) { ms = 0; } - bool const success = SleepConditionVariableCS(&cond_, l.m_, static_cast<DWORD>(timeout.get_milliseconds())) != 0; + bool const success = SleepConditionVariableCS(&cond_, l.m_, static_cast<DWORD>(ms)) != 0; #else int res; timespec ts; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libfilezilla-0.18.1/lib/uri.cpp new/libfilezilla-0.18.2/lib/uri.cpp --- old/libfilezilla-0.18.1/lib/uri.cpp 2019-06-17 15:31:43.000000000 +0200 +++ new/libfilezilla-0.18.2/lib/uri.cpp 2019-09-16 15:46:58.000000000 +0200 @@ -221,6 +221,12 @@ } +bool uri::operator==(uri const& arg) const +{ + return std::tie(scheme_, user_, pass_, host_, port_, path_, query_, fragment_) == std::tie(arg.scheme_, arg.user_, arg.pass_, arg.host_, arg.port_, arg.path_, arg.query_, arg.fragment_); +} + + query_string::query_string(std::string const& raw) { set(raw); @@ -244,20 +250,20 @@ { segments_.clear(); - auto const tokens = fz::strtok_view(raw, "&"); + auto const tokens = strtok_view(raw, "&"); for (auto const& token : tokens) { size_t pos = token.find('='); if (!pos) { return false; } - std::string key = fz::percent_decode(token.substr(0, pos)); + std::string key = percent_decode(token.substr(0, pos)); if (key.empty()) { return false; } std::string value; if (pos != std::string::npos) { - value = fz::percent_decode(token.substr(pos + 1)); + value = percent_decode(token.substr(pos + 1)); if (value.empty() && pos + 1 != token.size()) { return false; } @@ -286,9 +292,9 @@ std::string ret; if (!segments_.empty()) { for (auto const& segment : segments_) { - ret += fz::percent_encode(segment.first, !encode_slashes); + ret += percent_encode(segment.first, !encode_slashes); ret += '='; - ret += fz::percent_encode(segment.second, !encode_slashes); + ret += percent_encode(segment.second, !encode_slashes); ret += '&'; } ret.pop_back();
