Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added debian patch to fix resource directory again.

  • Loading branch information...
commit 3330e702ed27a9f3aa56699839cdbbc556094b83 1 parent cdef46e
@fossilet fossilet authored
View
1  .pc/applied-patches
@@ -1,2 +1 @@
fix-resource-dirs.patch
-fix-resource-dir.patch
View
0  .pc/fix-resource-dir.patch/.timestamp → .pc/fix-resource-dirs.patch/.timestamp
File renamed without changes
View
0  .pc/fix-resource-dir.patch/4digits → .pc/fix-resource-dirs.patch/4digits
File renamed without changes
View
0  .pc/fix-resource-dirs.patch/help
No changes.
View
4 4digits
@@ -44,8 +44,8 @@ except ImportError:
__version__ = '1.1'
# We do not search glade file in /usr/share/ any longer. Debian packagers may need to patch this.
-__gladefile__ = '/usr/share/4digits/4digits.glade'
-__helpfile__ = '/usr/share/doc/4digits/index.html'
+__gladefile__ = "/usr/share/4digits/4digits.glade"
+__helpfile__ = "/usr/share/doc/4digits/index.html"
__appdata_dir__ = os.path.join(os.path.expanduser('~'), '.4digits')
__config_path__ = os.path.join(__appdata_dir__, 'prefs.pickle')
__score_filename__ = os.path.join(__appdata_dir__, '4digits.4digits.scores')
View
8 debian/patches/fix-resource-dir.patch → debian/patches/fix-resource-dirs.patch
@@ -1,4 +1,6 @@
-Hardcoded glade and doc directory.
+Author: Yongzhi Pan <panyongzhi@gmail.com>
+Description: Fix resource directories
+Last-Update: 2012-04-02
--- a/4digits
+++ b/4digits
@@ -44,8 +44,8 @@
@@ -7,8 +9,8 @@ Hardcoded glade and doc directory.
# We do not search glade file in /usr/share/ any longer. Debian packagers may need to patch this.
-__gladefile__ = os.path.join(os.path.dirname(__file__), '4digits.glade')
-__helpfile__ = os.path.join(os.path.dirname(__file__), 'doc', 'index.html')
-+__gladefile__ = '/usr/share/4digits/4digits.glade'
-+__helpfile__ = '/usr/share/doc/4digits/index.html'
++__gladefile__ = "/usr/share/4digits/4digits.glade"
++__helpfile__ = "/usr/share/doc/4digits/index.html"
__appdata_dir__ = os.path.join(os.path.expanduser('~'), '.4digits')
__config_path__ = os.path.join(__appdata_dir__, 'prefs.pickle')
__score_filename__ = os.path.join(__appdata_dir__, '4digits.4digits.scores')
View
2  debian/patches/series
@@ -1 +1 @@
-fix-resource-dir.patch
+fix-resource-dirs.patch
Please sign in to comment.
Something went wrong with that request. Please try again.