diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-01 15:40:13 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-01 15:40:13 +0000 |
commit | 05f6fb34ee79ee8112ef549e93f0a138be0e2abf (patch) | |
tree | 6ba01d84d85f00b380477077d920c341c3570b09 /hplip-scan-tmp.patch | |
parent | 9e5a3ab8358d9d01de9ddf82042f5f1a42cfb841 (diff) |
automatic import of hplipopeneuler24.03_LTS
Diffstat (limited to 'hplip-scan-tmp.patch')
-rw-r--r-- | hplip-scan-tmp.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/hplip-scan-tmp.patch b/hplip-scan-tmp.patch new file mode 100644 index 0000000..552a112 --- /dev/null +++ b/hplip-scan-tmp.patch @@ -0,0 +1,25 @@ +diff -up hplip-3.18.12/scan.py.scan-tmp hplip-3.18.12/scan.py +--- hplip-3.18.12/scan.py.scan-tmp 2019-01-08 12:48:20.194815147 +0100 ++++ hplip-3.18.12/scan.py 2019-01-08 12:50:47.942620000 +0100 +@@ -1887,7 +1887,7 @@ try: + if ('editor' in dest or 'viewer' in dest or 'email' in dest or 'print' in dest) \ + and not file_saved: + +- output_fd, output = utils.make_temp_file(suffix='.png') ++ output_fd, output = utils.make_temp_file(dir='/var/tmp', suffix='.png') + try: + '''pyPlatform = platform.python_version() + num = pyPlatform.split('.') +diff -up hplip-3.18.12/scan/sane.py.scan-tmp hplip-3.18.12/scan/sane.py +--- hplip-3.18.12/scan/sane.py.scan-tmp 2018-12-03 08:10:22.000000000 +0100 ++++ hplip-3.18.12/scan/sane.py 2019-01-08 12:48:20.194815147 +0100 +@@ -425,7 +425,8 @@ class ScanThread(threading.Thread): + self.dev = device + self.update_queue = update_queue + self.event_queue = event_queue +- self.buffer_fd, self.buffer_path = utils.make_temp_file(prefix='hpscan') ++ self.buffer_fd, self.buffer_path = utils.make_temp_file(dir='/var/tmp', ++ prefix='hpscan') + self.buffer = os.fdopen(self.buffer_fd, "w+b") + self.format = -1 + self.format_name = '' |