[Python-modules-commits] r30932 - in packages/tagpy/trunk/debian (3 files)
nijel at users.alioth.debian.org
nijel at users.alioth.debian.org
Mon Oct 6 08:49:33 UTC 2014
Date: Monday, October 6, 2014 @ 08:49:32
Author: nijel
Revision: 30932
Backport upstream patch for crash on non existing file (Closes: #712596).
Added:
packages/tagpy/trunk/debian/patches/0001-Work-around-Debian-bug-712596-fixes-4.patch
Modified:
packages/tagpy/trunk/debian/changelog
packages/tagpy/trunk/debian/patches/series
Modified: packages/tagpy/trunk/debian/changelog
===================================================================
--- packages/tagpy/trunk/debian/changelog 2014-10-06 08:41:34 UTC (rev 30931)
+++ packages/tagpy/trunk/debian/changelog 2014-10-06 08:49:32 UTC (rev 30932)
@@ -4,6 +4,7 @@
* Bump standards to 3.9.6.
* Adjust Vcs-Svn URL.
* Use system setuptools for building.
+ * Backport upstream patch for crash on non existing file (Closes: #712596).
-- Michal ÄihaÅ <nijel at debian.org> Mon, 06 Oct 2014 10:22:24 +0200
Added: packages/tagpy/trunk/debian/patches/0001-Work-around-Debian-bug-712596-fixes-4.patch
===================================================================
--- packages/tagpy/trunk/debian/patches/0001-Work-around-Debian-bug-712596-fixes-4.patch (rev 0)
+++ packages/tagpy/trunk/debian/patches/0001-Work-around-Debian-bug-712596-fixes-4.patch 2014-10-06 08:49:32 UTC (rev 30932)
@@ -0,0 +1,26 @@
+From e2fa4e63caad8e81d13bcc3a65e6b927f1a3cf81 Mon Sep 17 00:00:00 2001
+From: Andreas Kloeckner <inform at tiker.net>
+Date: Wed, 10 Jul 2013 08:03:07 -0400
+Subject: [PATCH 1/1] Work around Debian bug 712596, fixes #4
+
+---
+ tagpy/__init__.py | 22 +++++++++++-----------
+ test/test_tagpy.py | 20 ++++++++++++++++++++
+ 2 files changed, 31 insertions(+), 11 deletions(-)
+ create mode 100644 test/test_tagpy.py
+
+diff --git a/tagpy/__init__.py b/tagpy/__init__.py
+index 2f3da23..2794743 100644
+--- a/tagpy/__init__.py
++++ b/tagpy/__init__.py
+@@ -101,6 +97,10 @@ class FileRef(object):
+ if file:
+ return file
+
++ from os.path import exists
++ if not exists(fileName):
++ raise IOError("File does not exist")
++
+ from os.path import splitext
+ ext = splitext(fileName)[1][1:].lower()
+
Modified: packages/tagpy/trunk/debian/patches/series
===================================================================
--- packages/tagpy/trunk/debian/patches/series 2014-10-06 08:41:34 UTC (rev 30931)
+++ packages/tagpy/trunk/debian/patches/series 2014-10-06 08:49:32 UTC (rev 30932)
@@ -1,3 +1,4 @@
+0001-Work-around-Debian-bug-712596-fixes-4.patch
taglib-1.8.patch
optional-siteconf.patch
installed-setuptools.patch
More information about the Python-modules-commits
mailing list