Package: release.debian.org
Severity: normal
User: release.debian....@packages.debian.org
Usertags: unblock

Please unblock package anki

Okay, this is the flash card learning program with that syncing feature
to an upstream server that refuses to sync with older versions such as
2.0.30 which is in jessie currently. I asked how to handle that on the
mailing list a few weeks back.

Anyway, I decided to upload the latest upstream release to unstable
since it is just such a small change. Upstream lists "Fix a problem
where large regular syncs sometimes timed out." as the only change, and
you can see in the diff that a size limit is the only code change beside
the version number (the version number likely being responsible for
getting rejected by the server or not).

I also added a README.Debian explaining this issue which would be nice
to have in jessie. This fixes bug #768398 (which is about being unable
to sync, naturally). I hope this is acceptable for an unblock.


Source debdiff (stripped by changes caused by version number in created
files):

diff -Nru anki-2.0.30+dfsg/anki/__init__.py anki-2.0.31+dfsg/anki/__init__.py
--- anki-2.0.30+dfsg/anki/__init__.py   2014-10-18 08:09:32.000000000 +0200
+++ anki-2.0.31+dfsg/anki/__init__.py   2014-10-19 10:00:20.000000000 +0200
@@ -30,6 +30,6 @@
     sys.path.insert(0, os.path.join(ext, "py2.%d-%s" % (
         sys.version_info[1], arch[0][0:2])))
 
-version="2.0.30" # build scripts grep this line, so preserve formatting
+version="2.0.31" # build scripts grep this line, so preserve formatting
 from anki.storage import Collection
 __all__ = ["Collection"]
diff -Nru anki-2.0.30+dfsg/anki/sync.py anki-2.0.31+dfsg/anki/sync.py
--- anki-2.0.30+dfsg/anki/sync.py       2014-10-18 08:08:57.000000000 +0200
+++ anki-2.0.31+dfsg/anki/sync.py       2014-10-19 09:56:36.000000000 +0200
@@ -321,7 +321,7 @@
 
     def chunk(self):
         buf = dict(done=False)
-        lim = 2500
+        lim = 250
         while self.tablesLeft and lim:
             curTable = self.tablesLeft[0]
             if not self.cursor:
diff -Nru anki-2.0.30+dfsg/debian/changelog anki-2.0.31+dfsg/debian/changelog
--- anki-2.0.30+dfsg/debian/changelog   2014-10-19 00:45:40.000000000 +0200
+++ anki-2.0.31+dfsg/debian/changelog   2014-12-02 02:15:09.000000000 +0100
@@ -1,3 +1,12 @@
+anki (2.0.31+dfsg-1) unstable; urgency=medium
+
+  * New upstream version 2.0.31+dfsg
+    - Having a current version fixes Anki server refusing to sync
+      (Closes: 768398)
+  * Add README.Debian with some info about why network syncing may fail
+
+ -- Andreas Bombe <a...@debian.org>  Tue, 02 Dec 2014 01:54:04 +0100
+
 anki (2.0.30+dfsg-1) unstable; urgency=medium
 
   * New upstream version 2.0.30+dfsg
diff -Nru anki-2.0.30+dfsg/debian/README.Debian 
anki-2.0.31+dfsg/debian/README.Debian
--- anki-2.0.30+dfsg/debian/README.Debian       1970-01-01 01:00:00.000000000 
+0100
+++ anki-2.0.31+dfsg/debian/README.Debian       2014-12-02 02:15:09.000000000 
+0100
@@ -0,0 +1,13 @@
+What to do when syncing to the Anki server stops working
+--------------------------------------------------------
+
+Syncing depends on a server that is run by the Anki creator who understandably
+only supports his own most recent version of Anki. This means that older
+versions stop being able to sync soon after a new version is released.
+
+If you need the syncing feature, the only way to keep using it is to always run
+the latest version of Anki. However, the releases of Debian don't directly get
+new versions of most packages during their lifetime. So if you want to use Anki
+with syncing in a release, please look at http://backports.debian.org/ for
+information on how to get an up to date version of this package for the release
+you use.


unblock anki/2.0.31+dfsg-1

-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.18.0-rc6-00165-g7a5a4f9 (SMP w/8 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to