Ticket #42776: check.py.patch

File check.py.patch, 1.5 KB (added by okmacports@…, 7 years ago)
  • check.py

    old new  
    310310                     %(self.distro_name, self.distro_version, self.distro_name, supported_distro_vrs)))
    311311         
    312312        tui.header("SYSTEM INFO")
    313         Sts, Kernel_info =utils.run("uname -r -v -o")
     313        Sts, Kernel_info =utils.run("uname -r -v -s")
    314314        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")
    316316        log.info(" Kernel: %s Host: %s Proc: %s Distribution: %s %s"\
    317317             %(Kernel_info,Host_info,Proc_info,self.distro_name, self.distro_version))
    318318        log.info(" Bitness: %s bit\n"%utils.getBitness())
     
    442442                tui.header("DISCOVERED SCANNER DEVICES")
    443443                if utils.which('scanimage'):
    444444                    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:
    448449                        log.info("No Scanner found.")
    449450                    else:
    450451                        log.info(output)