Ticket #42776: check.py.patch
File check.py.patch, 1.5 KB (added by okmacports@…, 11 years ago) |
---|
-
check.py
old new 310 310 %(self.distro_name, self.distro_version, self.distro_name, supported_distro_vrs))) 311 311 312 312 tui.header("SYSTEM INFO") 313 Sts, Kernel_info =utils.run("uname -r -v - o")313 Sts, Kernel_info =utils.run("uname -r -v -s") 314 314 Sts, Host_info =utils.run("uname -n") 315 Sts, Proc_info =utils.run("uname -r -v - o")315 Sts, Proc_info =utils.run("uname -r -v -s") 316 316 log.info(" Kernel: %s Host: %s Proc: %s Distribution: %s %s"\ 317 317 %(Kernel_info,Host_info,Proc_info,self.distro_name, self.distro_version)) 318 318 log.info(" Bitness: %s bit\n"%utils.getBitness()) … … 442 442 tui.header("DISCOVERED SCANNER DEVICES") 443 443 if utils.which('scanimage'): 444 444 status, output = utils.run("scanimage -L") 445 if status != 0 : 446 log.error("Failed to get Scanners information.") 447 elif 'No scanners were identified' in output: 445 # if status != 0 : 446 # log.error("Failed to get Scanners information.") 447 # elif 'No scanners were identified' in output: 448 if 'No scanners were identified' in output: 448 449 log.info("No Scanner found.") 449 450 else: 450 451 log.info(output)