lgogdownloader (3.1-2) unstable; urgency=medium
authorStephen Kitt <skitt@debian.org>
Wed, 5 Apr 2017 17:27:13 +0000 (18:27 +0100)
committerStephen Kitt <skitt@debian.org>
Wed, 5 Apr 2017 17:27:13 +0000 (18:27 +0100)
  [ Simon McVittie ]
  * Team upload
  * Backport patch from 3.2 fixing the ability to list games if a game
    has {'updates': null} (Closes: #857691)

[dgit import unpatched lgogdownloader 3.1-2]

1  2 
debian/changelog
debian/compat
debian/control
debian/copyright
debian/gbp.conf
debian/patches/Fix-crash-in-Website-getGames.patch
debian/patches/manpage-whatis.patch
debian/patches/series
debian/rules
debian/source/format
debian/watch

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f030c4d2663d7e2c1aad16ce793e7f6b4c4a7eab
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,134 @@@
++lgogdownloader (3.1-2) unstable; urgency=medium
++
++  [ Simon McVittie ]
++  * Team upload
++  * Backport patch from 3.2 fixing the ability to list games if a game
++    has {'updates': null} (Closes: #857691)
++
++ -- Stephen Kitt <skitt@debian.org>  Wed, 05 Apr 2017 19:27:13 +0200
++
++lgogdownloader (3.1-1) unstable; urgency=medium
++
++  * New upstream release.
++
++ -- Stephen Kitt <skitt@debian.org>  Mon, 16 Jan 2017 19:35:28 +0100
++
++lgogdownloader (3.0-1) unstable; urgency=medium
++
++  * New upstream release.
++  * Now that libjsoncpp-dev is fixed, drop the explicit dependency on
++    libjsoncpp1.
++  * Switch to debhelper compatibility level 10.
++  * Clarify the description regarding DFSG-free games on GOG.com.
++
++ -- Stephen Kitt <skitt@debian.org>  Thu, 24 Nov 2016 22:06:40 +0100
++
++lgogdownloader (2.28-1) unstable; urgency=medium
++
++  * New upstream release, merging jsoncpp-1.7.1.patch.
++  * Standards-Version 3.9.8, no change required.
++
++ -- Stephen Kitt <skitt@debian.org>  Mon, 09 May 2016 23:35:51 +0200
++
++lgogdownloader (2.27-2) unstable; urgency=medium
++
++  * Apply upstream patch to build with libjsoncpp 1.7.1 and later. Closes:
++    #820064, #820315.
++
++ -- Stephen Kitt <skitt@debian.org>  Fri, 08 Apr 2016 13:46:48 +0200
++
++lgogdownloader (2.27-1) unstable; urgency=medium
++
++  * New upstream release, with a new cmake-based build obsoleting all the
++    existing patches apart from manpage-whatis.patch.
++
++ -- Stephen Kitt <skitt@debian.org>  Fri, 18 Mar 2016 12:56:19 +0100
++
++lgogdownloader (2.26-2) unstable; urgency=medium
++
++  * Switch to https: VCS URIs (see #810378).
++  * Apply upstream's fix for crashes after login (thanks to Phil Morrell
++    for pointing it out!).
++  * Standards-Version 3.9.7, no change required.
++  * Enable full hardening.
++
++ -- Stephen Kitt <skitt@debian.org>  Wed, 24 Feb 2016 20:23:37 +0100
++
++lgogdownloader (2.26-1) unstable; urgency=medium
++
++  * New upstream release.
++  * Drop unattended-login.patch, merged upstream.
++
++ -- Stephen Kitt <skitt@debian.org>  Wed, 14 Oct 2015 18:25:27 +0200
++
++lgogdownloader (2.25-2) unstable; urgency=medium
++
++  * Handle unattended login attempts. Closes: #798740.
++
++ -- Stephen Kitt <skitt@debian.org>  Sun, 13 Sep 2015 19:41:13 +0200
++
++lgogdownloader (2.25-1) unstable; urgency=medium
++
++  * New upstream release.
++
++ -- Stephen Kitt <skitt@debian.org>  Mon, 07 Sep 2015 22:40:29 +0200
++
++lgogdownloader (2.24-1) unstable; urgency=medium
++
++  * New upstream release.
++  * Refresh manpage-whatis.patch.
++
++ -- Stephen Kitt <skitt@debian.org>  Tue, 14 Jul 2015 14:02:39 +0200
++
++lgogdownloader (2.23-1) unstable; urgency=medium
++
++  * New upstream release.
++  * Refresh patch.
++
++ -- Stephen Kitt <skitt@debian.org>  Wed, 20 May 2015 07:18:47 +0200
++
++lgogdownloader (2.21-2) unstable; urgency=medium
++
++  * Upload to unstable.
++
++ -- Stephen Kitt <skitt@debian.org>  Sun, 10 May 2015 21:45:26 +0200
++
++lgogdownloader (2.21-1) experimental; urgency=medium
++  * New upstream release.
++
++ -- Stephen Kitt <skitt@debian.org>  Fri, 10 Apr 2015 21:24:56 +0200
++
++lgogdownloader (2.20-1) experimental; urgency=medium
++
++  * New upstream release, uploaded to experimental for the Jessie freeze.
++
++ -- Stephen Kitt <skitt@debian.org>  Thu, 11 Dec 2014 00:16:28 +0100
++
++lgogdownloader (2.19-1) unstable; urgency=medium
++
++  * New upstream release.
++  * Standards-Version 3.9.6, no change required.
++
++ -- Stephen Kitt <skitt@debian.org>  Tue, 21 Oct 2014 20:31:24 +0200
++
++lgogdownloader (2.18-1) unstable; urgency=medium
++
++  * New upstream release.
++  * Refresh patches, and drop help-without-home.patch (merged upstream).
++  * Add pointers to the git repository on Alioth.
++  * Make sure CPPFLAGS are taken into account.
++
++ -- Stephen Kitt <skitt@debian.org>  Tue, 23 Sep 2014 17:18:17 +0200
++
++lgogdownloader (2.17-2) unstable; urgency=medium
++
++  * Avoid touching $HOME if --help or --version are specified on the
++    command-line. Closes: #761217.
++
++ -- Stephen Kitt <skitt@debian.org>  Thu, 11 Sep 2014 23:17:00 +0200
++
++lgogdownloader (2.17-1) unstable; urgency=low
++
++  * Initial release. Closes: #761130.
++
++ -- Stephen Kitt <skitt@debian.org>  Wed, 10 Sep 2014 23:26:18 +0200
diff --cc debian/compat
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f599e28b8ab0d8c9c57a486c89c4a5132dcbd3b2
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++10
diff --cc debian/control
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..256681eebde88c0ec0185893c2210aa490f0cc11
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,39 @@@
++Source: lgogdownloader
++Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
++Uploaders: Stephen Kitt <skitt@debian.org>
++Section: web
++Priority: optional
++Build-Depends: cmake,
++               debhelper (>= 10),
++               help2man,
++               libboost-date-time-dev,
++               libboost-filesystem-dev,
++               libboost-program-options-dev,
++               libboost-regex-dev,
++               libboost-system-dev,
++               libhtmlcxx-dev,
++               libjsoncpp-dev (>= 1.7.1),
++               liboauth-dev,
++               librhash-dev,
++               libssl-dev,
++               libtinyxml2-dev,
++               pkg-config
++Standards-Version: 3.9.8
++Vcs-Browser: https://anonscm.debian.org/cgit/pkg-games/lgogdownloader.git
++Vcs-Git: https://anonscm.debian.org/git/pkg-games/lgogdownloader.git
++Homepage: https://sites.google.com/site/gogdownloader/
++
++Package: lgogdownloader
++Architecture: any
++Multi-Arch: foreign
++Depends: ${misc:Depends},
++         ${shlibs:Depends}
++Description: downloader for GOG.com files
++ lgogdownloader is a client for the GOG.com download API, allowing
++ simple downloads and updates of games and other files from GOG.com.
++ .
++ This package is only useful if you own games on GOG.com. There are a
++ few free-as-in-beer games available for Linux, but the DFSG-free
++ games available on GOG.com are not provided for Linux and are
++ available in Debian anyway (lure-of-the-temptress,
++ beneath-a-steel-sky, flight-of-the-amazon-queen).
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..28919ec6612ed17ea9d55b37cb075b5ca3758a85
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,36 @@@
++Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
++Upstream-Name: lgogdownloader
++Source: https://sites.google.com/site/gogdownloader/
++
++Files: *
++Copyright: none declared
++License: WTFPL-2
++
++Files: debian/*
++Copyright: 2014 Stephen Kitt
++License: WTFPL-2
++
++License: WTFPL-2
++ This program is free software. It comes without any warranty, to the
++ extent permitted by applicable law. You can redistribute it and/or
++ modify it under the terms of the Do What The Fuck You Want To Public
++ License, Version 2, as published by Sam Hocevar. See
++ http://www.wtfpl.net/ for more details.
++ .
++ The full text of the license is provided in the COPYING file and
++ reproduced here:
++ .
++            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
++                    Version 2, December 2004
++ .
++ Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
++ .
++ Everyone is permitted to copy and distribute verbatim or modified
++ copies of this license document, and changing it is allowed as long
++ as the name is changed.
++ .
++            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
++   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
++ .
++  0. You just DO WHAT THE FUCK YOU WANT TO.
++ .
diff --cc debian/gbp.conf
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..7e386167be4269dc85a21e42c693ab17890df3ff
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,4 @@@
++# Configuration file for git-buildpackage and friends
++
++[DEFAULT]
++pristine-tar = True
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a68916272ab7e0c5c3659fd16d8e5a9ab61d9898
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,49 @@@
++From: Sude <lgogdownloader@gmail.com>
++Date: Fri, 20 Jan 2017 00:15:50 +0200
++Subject: Fix crash in Website::getGames
++
++JSON value for updates can be null in some cases. For example when user owns a dlc but not the base game.
++This caused a crash due to std::stoi throwing std::invalid_argument exception
++
++Origin: upstream, 3.2, commit:22f47de4fcd8cd7ecc2a89fbb25f94efb1b3f743
++---
++ src/website.cpp | 26 +++++++++++++++++++++++++-
++ 1 file changed, 25 insertions(+), 1 deletion(-)
++
++diff --git a/src/website.cpp b/src/website.cpp
++index 0803432..8ca4c8c 100644
++--- a/src/website.cpp
+++++ b/src/website.cpp
++@@ -163,7 +163,31 @@ std::vector<gameItem> Website::getGames()
++                 gameItem game;
++                 game.name = product["slug"].asString();
++                 game.id = product["id"].isInt() ? std::to_string(product["id"].asInt()) : product["id"].asString();
++-                game.updates = product["updates"].isInt() ? product["updates"].asInt() : std::stoi(product["updates"].asString());
+++
+++                if (product.isMember("updates"))
+++                {
+++                    if (product["updates"].isNull())
+++                    {
+++                        /* In some cases the value can be null.
+++                         * For example when user owns a dlc but not the base game
+++                         * https://github.com/Sude-/lgogdownloader/issues/101
+++                         * Assume that there are no updates in this case */
+++                        game.updates = 0;
+++                    }
+++                    else if (product["updates"].isInt())
+++                        game.updates = product["updates"].asInt();
+++                    else
+++                    {
+++                        try
+++                        {
+++                            game.updates = std::stoi(product["updates"].asString());
+++                        }
+++                        catch (std::invalid_argument& e)
+++                        {
+++                            game.updates = 0; // Assume no updates
+++                        }
+++                    }
+++                }
++ 
++                 unsigned int platform = 0;
++                 if (product["worksOn"]["Windows"].asBool())
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6293f586bd98fc915d06d07fc46d2194c59bf61d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,14 @@@
++Description: Provide meaningful whatis entry
++Author: Stephen Kitt <skitt@debian.org>
++
++--- a/man/CMakeLists.txt
+++++ b/man/CMakeLists.txt
++@@ -9,7 +9,7 @@
++   set(MAN_FILE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.1.gz)
++   add_custom_command(
++     OUTPUT ${MAN_FILE}
++-    COMMAND ${HELP2MAN} -N -i ${H2M_FILE} -o ${MAN_PAGE} ${PROJECT_BINARY_DIR}/${PROJECT_NAME}${CMAKE_EXECUTABLE_SUFFIX}
+++    COMMAND ${HELP2MAN} -N -i ${H2M_FILE} -n "downloader for GOG.com games and other files" -o ${MAN_PAGE} ${PROJECT_BINARY_DIR}/${PROJECT_NAME}${CMAKE_EXECUTABLE_SUFFIX}
++     COMMAND ${GZIP} -f -9 ${MAN_PAGE}
++     MAIN_DEPENDENCY ${H2M_FILE}
++      COMMENT "Building man page"
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..69eb314126d54d8d00f0e7bf2cba51aaf86b3960
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,2 @@@
++Fix-crash-in-Website-getGames.patch
++manpage-whatis.patch
diff --cc debian/rules
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..700cb18c7287508829ba1aaedef57932f6d58c4a
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,11 @@@
++#!/usr/bin/make -f
++#DH_VERBOSE = 1
++
++export DEB_BUILD_MAINT_OPTIONS = hardening=+all
++
++%:
++      dh $@  
++
++
++
++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c3d9f2407417795889250717d7b519eadd8373e6
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,2 @@@
++3.0 (quilt)
++
diff --cc debian/watch
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3642829c0ad8e60ebcbd5d8222c9b6815a914716
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,4 @@@
++# watch control file for uscan
++version=3
++
++https://github.com/Sude-/lgogdownloader/tags (?:.*/)?v?(\d[\d\.]*)\.(?:tar\.gz|tar\.bz2|tar\.xz)