Hello community, here is the log from the commit of package i18nspector for openSUSE:Factory checked in at 2013-06-13 16:43:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/i18nspector (Old) and /work/SRC/openSUSE:Factory/.i18nspector.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "i18nspector" Changes: -------- --- /work/SRC/openSUSE:Factory/i18nspector/i18nspector.changes 2013-06-05 17:41:34.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.i18nspector.new/i18nspector.changes 2013-06-13 16:43:24.000000000 +0200 @@ -1,0 +2,7 @@ +Sun Jun 9 18:58:54 UTC 2013 - lazy.k...@opensuse.org + +- Update to 0.9.2. + * When emitting broken-encoding, don't output the whole file, but + only the undecodable bytes in a small context. + +------------------------------------------------------------------- Old: ---- i18nspector-0.9.1.tar.gz i18nspector-0.9.1.tar.gz.asc New: ---- i18nspector-0.9.2.tar.gz i18nspector-0.9.2.tar.gz.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ i18nspector.spec ++++++ --- /var/tmp/diff_new_pack.91WAmn/_old 2013-06-13 16:43:25.000000000 +0200 +++ /var/tmp/diff_new_pack.91WAmn/_new 2013-06-13 16:43:25.000000000 +0200 @@ -17,12 +17,12 @@ Name: i18nspector -Version: 0.9.1 +Version: 0.9.2 Release: 0 -License: MIT Summary: Tool for Checking gettext POT/PO/MO Files -Url: http://jwilk.net/software/i18nspector +License: MIT Group: Development/Tools/Other +Url: http://jwilk.net/software/i18nspector Source0: https://bitbucket.org/jwilk/i18nspector/downloads/%{name}-%{version}.tar.gz Source1: https://bitbucket.org/jwilk/i18nspector/downloads/%{name}-%{version}.tar.gz.asc Source2: %{name}.keyring ++++++ i18nspector-0.9.1.tar.gz -> i18nspector-0.9.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/i18nspector-0.9.1/doc/changelog new/i18nspector-0.9.2/doc/changelog --- old/i18nspector-0.9.1/doc/changelog 2013-05-17 15:34:11.000000000 +0200 +++ new/i18nspector-0.9.2/doc/changelog 2013-06-08 11:40:35.000000000 +0200 @@ -1,3 +1,10 @@ +i18nspector (0.9.2) unstable; urgency=low + + * When emitting broken-encoding, don't output the whole file, but only the + undecodable bytes in a small context. + + -- Jakub Wilk <jw...@jwilk.net> Sat, 08 Jun 2013 11:40:23 +0200 + i18nspector (0.9.1) unstable; urgency=low * Brown paper bag release. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/i18nspector-0.9.1/doc/i18nspector.1 new/i18nspector-0.9.2/doc/i18nspector.1 --- old/i18nspector-0.9.1/doc/i18nspector.1 2013-05-17 15:34:15.000000000 +0200 +++ new/i18nspector-0.9.2/doc/i18nspector.1 2013-06-08 11:40:38.000000000 +0200 @@ -1,6 +1,6 @@ .\" Man page generated from reStructuredText. . -.TH I18NSPECTOR 1 "2013-05-17" "i18nspector 0.9.1" "" +.TH I18NSPECTOR 1 "2013-06-08" "i18nspector 0.9.2" "" .SH NAME i18nspector \- checking tool for gettext POT, PO and MO files . diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/i18nspector-0.9.1/doc/i18nspector.txt new/i18nspector-0.9.2/doc/i18nspector.txt --- old/i18nspector-0.9.1/doc/i18nspector.txt 2013-05-17 15:34:11.000000000 +0200 +++ new/i18nspector-0.9.2/doc/i18nspector.txt 2013-06-08 11:40:35.000000000 +0200 @@ -7,7 +7,7 @@ ---------------------------------------------- :manual section: 1 -:version: i18nspector 0.9.1 +:version: i18nspector 0.9.2 :date: |date| Synopsis diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/i18nspector-0.9.1/lib/checker.py new/i18nspector-0.9.2/lib/checker.py --- old/i18nspector-0.9.1/lib/checker.py 2013-05-17 15:34:11.000000000 +0200 +++ new/i18nspector-0.9.2/lib/checker.py 2013-06-08 11:40:35.000000000 +0200 @@ -22,7 +22,6 @@ import contextlib import difflib import email.utils -import itertools import os import re import struct @@ -151,8 +150,13 @@ raise finally: if broken_encoding: + s = broken_encoding.object + assert isinstance(s, bytes) + begin = max(broken_encoding.start - 40, 0) + end = broken_encoding.start + 40 + s = s[begin:end] self.tag('broken-encoding', - tags.safestr(repr(broken_encoding.object)[1:]), + tags.safestr(repr(s)[1:]), tags.safestr('cannot be decoded as'), broken_encoding.encoding.upper(), ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/i18nspector-0.9.1/lib/cli.py new/i18nspector-0.9.2/lib/cli.py --- old/i18nspector-0.9.1/lib/cli.py 2013-05-17 15:34:11.000000000 +0200 +++ new/i18nspector-0.9.2/lib/cli.py 2013-06-08 11:40:35.000000000 +0200 @@ -34,7 +34,7 @@ from . import tags from . import terminal -__version__ = '0.9.1' +__version__ = '0.9.2' def initialize_terminal(): if sys.stdout.isatty(): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/i18nspector-0.9.1/lib/encodings.py new/i18nspector-0.9.2/lib/encodings.py --- old/i18nspector-0.9.1/lib/encodings.py 2013-05-17 15:34:11.000000000 +0200 +++ new/i18nspector-0.9.2/lib/encodings.py 2013-06-08 11:40:35.000000000 +0200 @@ -1,4 +1,4 @@ -# Copyright © 2012 Jakub Wilk <jw...@jwilk.net> +# Copyright © 2012, 2013 Jakub Wilk <jw...@jwilk.net> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the “Software”), to deal diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/i18nspector-0.9.1/lib/polib4us.py new/i18nspector-0.9.2/lib/polib4us.py --- old/i18nspector-0.9.1/lib/polib4us.py 2013-05-17 15:34:11.000000000 +0200 +++ new/i18nspector-0.9.2/lib/polib4us.py 2013-06-08 11:40:35.000000000 +0200 @@ -1,4 +1,4 @@ -# Copyright © 2012 Jakub Wilk <jw...@jwilk.net> +# Copyright © 2012, 2013 Jakub Wilk <jw...@jwilk.net> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the “Software”), to deal @@ -98,7 +98,7 @@ patches += [codecs_patch] -# polib._baseFile.__init__() +# polib._BaseFile.__init__() # ========================== # Detect metadata duplicates. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/i18nspector-0.9.1/lib/terminal.py new/i18nspector-0.9.2/lib/terminal.py --- old/i18nspector-0.9.1/lib/terminal.py 2013-05-17 15:34:12.000000000 +0200 +++ new/i18nspector-0.9.2/lib/terminal.py 2013-06-08 11:40:35.000000000 +0200 @@ -1,4 +1,4 @@ -# Copyright © 2012 Jakub Wilk <jw...@jwilk.net> +# Copyright © 2012, 2013 Jakub Wilk <jw...@jwilk.net> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the “Software”), to deal -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org