hrw@efika:/tmp$ diff -u hookutils.py.orig hookutils.py
--- hookutils.py.orig 2011-03-02 16:06:36.872525099 +0100
+++ hookutils.py 2011-03-02 16:06:26.762526842 +0100
@@ -407,6 +407,11 @@
def pci_devices(*pci_classes):
'''Return a text dump of PCI devices attached to the system.'''
+ try:
+ os.stat("/proc/bus/pci")
+ except:
+ return ""
+
if not pci_classes:
return command_output(['lspci', '-vvnn'])
This change will work on any PCI-less system (as long as /proc/bus/
interface is present) and does not require to call lspci.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/608449
Title:
lspci returns error on devices that don't have pci adapters (arm)
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs