[debian-edu-commits] debian-edu/ 01/01: Add missing part of patch.

Dominik George natureshadow-guest at moszumanska.debian.org
Tue Jan 16 11:30:41 UTC 2018


This is an automated email from the git hooks/post-receive script.

natureshadow-guest pushed a commit to branch master
in repository sdaps.

commit bc8710d8bb3e487967ed57d2e70c05e32a577cfb
Author: Dominik George <nik at naturalnet.de>
Date:   Tue Jan 16 12:28:52 2018 +0100

    Add missing part of patch.
---
 debian/patches/remove_latex_copy.patch | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/debian/patches/remove_latex_copy.patch b/debian/patches/remove_latex_copy.patch
index 5cebd9f..7653523 100644
--- a/debian/patches/remove_latex_copy.patch
+++ b/debian/patches/remove_latex_copy.patch
@@ -45,3 +45,26 @@ Bug: https://github.com/sdaps/sdaps/issues/27
          for add_file in extra_files:
              shutil.copyfile(add_file, survey.path(os.path.basename(add_file)))
  
+--- a/sdaps/reporttex/__init__.py
++++ b/sdaps/reporttex/__init__.py
+@@ -88,20 +88,6 @@ def report(survey, filter, filename=None
+             tmpdir
+         )
+ 
+-        # Copy class and dictionary files
+-        if paths.local_run:
+-            cls_file = os.path.join(paths.source_dir, 'tex', 'sdapsreport.cls')
+-            dict_files = os.path.join(paths.build_dir, 'tex', '*.dict')
+-            dict_files = glob.glob(dict_files)
+-        else:
+-            cls_file = os.path.join(paths.prefix, 'share', 'sdaps', 'tex', 'sdapsreport.cls')
+-            dict_files = os.path.join(paths.prefix, 'share', 'sdaps', 'tex', '*.dict')
+-            dict_files = glob.glob(dict_files)
+-
+-        shutil.copyfile(cls_file, os.path.join(tmpdir, 'sdapsreport.cls'))
+-        for dict_file in dict_files:
+-            shutil.copyfile(dict_file, os.path.join(tmpdir, os.path.basename(dict_file)))
+-
+         texfile = codecs.open(os.path.join(tmpdir, 'report.tex'), 'w', 'utf-8')
+ 
+         author = _('author|Unknown')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/sdaps.git



More information about the debian-edu-commits mailing list