Hello community, here is the log from the commit of package btfs for openSUSE:Factory checked in at 2020-08-18 15:10:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/btfs (Old) and /work/SRC/openSUSE:Factory/.btfs.new.3399 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "btfs" Tue Aug 18 15:10:59 2020 rev:7 rq:827076 version:2.22 Changes: -------- --- /work/SRC/openSUSE:Factory/btfs/btfs.changes 2019-08-29 17:24:26.923298193 +0200 +++ /work/SRC/openSUSE:Factory/.btfs.new.3399/btfs.changes 2020-08-18 15:11:04.820041396 +0200 @@ -1,0 +2,11 @@ +Thu Aug 13 06:22:14 UTC 2020 - Paolo Stivanin <i...@paolostivanin.com> + +- 2.22 + * bug fixes + +------------------------------------------------------------------- +Thu Oct 17 15:01:10 UTC 2019 - Richard Brown <rbr...@suse.com> + +- Remove obsolete Groups tag (fate#326485) + +------------------------------------------------------------------- Old: ---- v2.20.tar.gz New: ---- v2.22.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ btfs.spec ++++++ --- /var/tmp/diff_new_pack.RzGCzy/_old 2020-08-18 15:11:05.808041805 +0200 +++ /var/tmp/diff_new_pack.RzGCzy/_new 2020-08-18 15:11:05.812041806 +0200 @@ -1,7 +1,7 @@ # # spec file for package btfs # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,11 +17,10 @@ Name: btfs -Version: 2.20 +Version: 2.22 Release: 0 Summary: A BitTorrent file system based on FUSE License: GPL-3.0-or-later -Group: Productivity/Networking/File-Sharing URL: https://github.com/johang/%{name} Source: https://github.com/johang/%{name}/archive/v%{version}.tar.gz BuildRequires: autoconf ++++++ v2.20.tar.gz -> v2.22.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/btfs-2.20/.travis.yml new/btfs-2.22/.travis.yml --- old/btfs-2.20/.travis.yml 2019-08-28 19:44:37.000000000 +0200 +++ new/btfs-2.22/.travis.yml 2020-08-11 00:30:26.000000000 +0200 @@ -2,9 +2,11 @@ matrix: include: - os: linux - env: LIBTORRENT_BRANCH=RC_1_2 TOOLCHAIN="CXX=g++-8 CC=gcc-8 CPP=cpp-8" + dist: bionic + env: LIBTORRENT_BRANCH=RC_1_2 TOOLCHAIN="CXX=g++-10 CC=gcc-10 CPP=cpp-10" - os: linux - env: LIBTORRENT_BRANCH=RC_1_1 TOOLCHAIN="CXX=g++-8 CC=gcc-8 CPP=cpp-8" + dist: bionic + env: LIBTORRENT_BRANCH=RC_1_1 TOOLCHAIN="CXX=g++-10 CC=gcc-10 CPP=cpp-10" - os: osx env: LIBTORRENT_BRANCH=RC_1_2 - os: osx @@ -22,7 +24,7 @@ - libboost-all-dev - libfuse-dev - libcurl4-openssl-dev - - g++-8 + - g++-10 before_install: - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/btfs-2.20/configure.ac new/btfs-2.22/configure.ac --- old/btfs-2.20/configure.ac 2019-08-28 19:44:37.000000000 +0200 +++ new/btfs-2.22/configure.ac 2020-08-11 00:30:26.000000000 +0200 @@ -1,5 +1,5 @@ AC_PREREQ([2.69]) -AC_INIT(btfs, 2.20, johan.gunnars...@gmail.com, btfs, https://github.com/johang/btfs) +AC_INIT(btfs, 2.22, johan.gunnars...@gmail.com, btfs, https://github.com/johang/btfs) AC_CONFIG_SRCDIR([src/btfs.cc]) AM_INIT_AUTOMAKE @@ -22,4 +22,7 @@ # Check for unportable pthread_setname_np() AC_CHECK_LIB(pthread, pthread_setname_np) +# Check if -latomic is needed. +AC_SEARCH_LIBS(__atomic_load, atomic) + AC_OUTPUT(Makefile src/Makefile scripts/Makefile man/Makefile) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/btfs-2.20/src/btfs.cc new/btfs-2.22/src/btfs.cc --- old/btfs-2.20/src/btfs.cc 2019-08-28 19:44:37.000000000 +0200 +++ new/btfs-2.22/src/btfs.cc 2020-08-11 00:30:26.000000000 +0200 @@ -533,6 +533,9 @@ static int btfs_statfs(const char *path, struct statvfs *stbuf) { + if (!handle.is_valid()) + return -ENOENT; + libtorrent::torrent_status st = handle.status(); if (!st.has_metadata) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/btfs-2.20/src/btfsstat.cc new/btfs-2.22/src/btfsstat.cc --- old/btfs-2.20/src/btfsstat.cc 2019-08-28 19:44:37.000000000 +0200 +++ new/btfs-2.22/src/btfsstat.cc 2020-08-11 00:30:26.000000000 +0200 @@ -71,8 +71,13 @@ } } else if (S_ISREG(s.st_mode)) { // Download progress for this file (in percent) - long progress = lround((100.0 * 512.0 * (double) s.st_blocks) / - (double) s.st_size); + long progress; + + if (s.st_size > 0) + progress = lround((100.0 * 512.0 * (double) s.st_blocks) / + (double) s.st_size); + else + progress = 100; printf("%s%s (%3ld%%)\n", indent.c_str(), f.c_str(), progress); }