File: 0058-Exit-if-source-cannot-be-fetched-from-device.patch

package info (click to toggle)
hplip 3.22.10%2Bdfsg0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 171,296 kB
  • sloc: python: 83,373; ansic: 71,016; cpp: 65,202; sh: 4,408; perl: 4,397; makefile: 937
file content (21 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: Zdenek Dohnal <zdohnal@redhat.com>
Date: Fri, 31 Jan 2020 13:12:46 +0100
Subject: Exit if source cannot be fetched from device

Origin: https://src.fedoraproject.org/rpms/hplip/blob/master/f/hplip-3165-sourceoption.patch
---
 scan.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scan.py b/scan.py
index 90cb6aa..bf9837c 100755
--- a/scan.py
+++ b/scan.py
@@ -966,6 +966,7 @@ try:
                 sys.exit(1)
         except:
             log.error("Failed to get the source from device.")
+            sys.exit(1)
 
         #check if device has only ADF
         if len(source_option) == 1 and 'ADF' in source_option: