[Lunar-commits] <moonbase> pciutils: added command to clean up old pci ids files

Zbigniew Luszpinski zbiggy at lunar-linux.org
Sun Jan 18 06:47:14 CET 2009


commit c982f90038a6f67e56fcde240877bef4c8f2acaf
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date:   Sun Jan 18 05:47:14 2009 +0000

    pciutils: added command to clean up old pci ids files
    for example if there is pci.ids and pci.ids.gz installed by other application th gz one is prefered and becomes never updated.
    Thanks to this improvement only one file: pci.ids maintained by pciutils is present and up to date.
---
 utils/pciutils/BUILD |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/utils/pciutils/BUILD b/utils/pciutils/BUILD
index b363307..1037fbe 100644
--- a/utils/pciutils/BUILD
+++ b/utils/pciutils/BUILD
@@ -8,6 +8,7 @@
   install lib/{pci,header,types,config}.h /usr/include/pci/ &&
   ln -sf /usr/lib/libpci.so.$(module_version pciutils) /usr/lib/libpci.so &&
   bunzip2 $SOURCE_CACHE/$SOURCE2 -c > pci.ids &&
+  rm -f /usr/share/pci.ids* &&
   install -m644 pci.ids /usr/share &&
 
   # the next line makes sure you will get a fresh pci id's db


More information about the Lunar-commits mailing list