summaryrefslogtreecommitdiff
path: root/pcr/font-manager/2003-file-roller-syntax-fix.patch
diff options
context:
space:
mode:
authorEsteban Carnevale <alfplayer@mailoo.org>2014-04-30 18:13:49 -0300
committerEsteban Carnevale <alfplayer@mailoo.org>2014-04-30 18:13:49 -0300
commit82e2fcb34f3a237e91bcac2b0069c6da8a43cee3 (patch)
tree1e48f02f4c4c69597095dd5e0e0c967e55ecd642 /pcr/font-manager/2003-file-roller-syntax-fix.patch
parentdf5903ae2d0c6ae788afb514d5a79d9a99e1f71a (diff)
downloadabslibre-82e2fcb34f3a237e91bcac2b0069c6da8a43cee3.tar.gz
abslibre-82e2fcb34f3a237e91bcac2b0069c6da8a43cee3.tar.bz2
abslibre-82e2fcb34f3a237e91bcac2b0069c6da8a43cee3.zip
font-manager-0.5.7-4: add new package to [pcr]
Diffstat (limited to 'pcr/font-manager/2003-file-roller-syntax-fix.patch')
-rw-r--r--pcr/font-manager/2003-file-roller-syntax-fix.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/pcr/font-manager/2003-file-roller-syntax-fix.patch b/pcr/font-manager/2003-file-roller-syntax-fix.patch
new file mode 100644
index 000000000..229e13dc6
--- /dev/null
+++ b/pcr/font-manager/2003-file-roller-syntax-fix.patch
@@ -0,0 +1,22 @@
+--- font-manager/src/utils/common.py 2010-12-20 12:47:37.000000000 +0800
++++ font-manager/src/utils/common.py 2013-06-12 22:09:06.296985078 +0800
+@@ -146,7 +146,7 @@
+
+ If delete is True, folder will be deleted afterwards
+ """
+- archiver = """file-roller -a '{0}.{1}' '{2}'""".format(arch_name,
++ archiver = """file-roller --add-to='{0}.{1}' '{2}'""".format(arch_name,
+ arch_type, folder)
+ os.chdir(destination)
+ roller = subprocess.Popen(shlex.split(archiver))
+--- font-manager/src/core/fonts.py 2010-12-20 13:14:43.000000000 +0800
++++ font-manager/src/core/fonts.py 2013-06-12 22:26:29.084669145 +0800
+@@ -524,7 +524,7 @@
+ tmp_dir = tempfile.mkdtemp(suffix='-font-manager', prefix='tmp-')
+ arch_dir = join(tmp_dir, dir_name)
+ os.mkdir(arch_dir)
+- subprocess.call(['file-roller', '-e', arch_dir, filepath])
++ subprocess.call(['file-roller', '--extract-to=' + arch_dir, filepath])
+ # Todo: Need to check whether archive actually contained any fonts
+ # if user_is_stupid:
+ # self.notify()