Browse Source

apply more patches from Matthias Kurz

Ralf S. Engelschall 21 years ago
parent
commit
7e59e33b3f
2 changed files with 26 additions and 7 deletions
  1. 25 6
      linkchecker/linkchecker.patch
  2. 1 1
      linkchecker/linkchecker.spec

+ 25 - 6
linkchecker/linkchecker.patch

@@ -1,10 +1,29 @@
+Index: linkcheck/i18n.py
+--- linkcheck/i18n.py.orig	2005-01-24 21:52:50 +0100
++++ linkcheck/i18n.py	2005-02-16 16:39:54 +0100
+@@ -73,12 +73,13 @@
+     """
+     global default_language
+     # get supported languages
+-    for lang in os.listdir(directory):
+-        path = os.path.join(directory, lang)
+-        if not os.path.isdir(path):
+-            continue
+-        if os.path.exists(os.path.join(path, 'LC_MESSAGES', '%s.mo'%domain)):
+-            supported_languages.append(lang)
++    if os.path.isdir(directory):
++        for lang in os.listdir(directory):
++            path = os.path.join(directory, lang)
++            if not os.path.isdir(path):
++                continue
++            if os.path.exists(os.path.join(path,'LC_MESSAGES','%s.mo'%domain)):
++                supported_languages.append(lang)
+     loc = get_locale()
+     if loc in supported_languages:
+         default_language = loc
 Index: setup.py
-===================================================================
-RCS file: /cvs/opkg/vendor_stuff/linkchecker/setup.py,v
-retrieving revision 1.1.1.1
-diff -u -u -r1.1.1.1 setup.py
---- setup.py	7 Feb 2005 00:30:28 -0000	1.1.1.1
-+++ setup.py	14 Feb 2005 07:18:20 -0000
+--- setup.py.orig	2005-02-07 01:30:28 +0100
++++ setup.py	2005-02-16 16:39:54 +0100
 @@ -86,7 +86,7 @@
              else:
                  val = getattr(self, attr)

+ 1 - 1
linkchecker/linkchecker.spec

@@ -38,7 +38,7 @@ Class:        PLUS
 Group:        Misc
 License:      GPL
 Version:      %{V_linkchecker}
-Release:      20050214
+Release:      20050216
 
 #   list of sources
 Source0:      http://osdn.dl.sourceforge.net/linkchecker/linkchecker-%{V_linkchecker}.tar.gz