diff options
| author | CoprDistGit <infra@openeuler.org> | 2024-08-05 02:45:17 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2024-08-05 02:45:17 +0000 |
| commit | 92ff4cdf8c84e91584dd6076aa5b3c774ab0a622 (patch) | |
| tree | 6ba01d84d85f00b380477077d920c341c3570b09 /hplip-scan-tmp.patch | |
| parent | d8ce4006ffe8011c16c265205aa330c52a0de0c1 (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 = '' |
