suppress-module-warnings.patch 663 B

12345678910111213141516
  1. Index: hplip-3.9.6b/base/module.py
  2. ===================================================================
  3. --- hplip-3.9.6b.orig/base/module.py
  4. +++ hplip-3.9.6b/base/module.py
  5. @@ -149,8 +149,8 @@ class Module(object):
  6. #log.debug("Default ui-toolkit: %s" % self.default_ui_toolkit)
  7. #log.debug("Default mode: %s" % self.default_mode)
  8. - if os.getuid() == 0 and not run_as_root_ok:
  9. - log.warn("%s should not be run as root/superuser." % mod)
  10. + #if os.getuid() == 0 and not run_as_root_ok:
  11. + # log.warn("%s should not be run as root/superuser." % mod)
  12. def setUsage(self, include_flags=0, extra_options=None,