Comment # 8 on bug 1190210 from
Thanks. I took this fix. Later with G04 I noticed, that this doesn't help for
pci id files with extension .legacy.

I ended up with a rather laborious code in my-find-supplements

# Tumbleweed
# pci_ids-390.144_k5.14.0_1.legacy --> pci_ids-390.144.legacy
# pci_ids-390.144_k5.14.0_1.new    --> pci_ids-390.144.new
# pci_ids-390.144_k5.14.0_1        --> pci_ids-390.144
# Leap/SLES
# pci_ids-390.144.legacy (no changes)
# pci_ids-390.144.new (no changes)
# pci_ids-390.144 (no changes) 

legacy=0
new=0
echo $PCI_ID_FILE | grep -q legacy && legacy=1
echo $PCI_ID_FILE | grep -q new    && new=1

PCI_ID_FILE=$(echo $PCI_ID_FILE | sed -e 's/_k.*//g' -e 's/.legacy//g' -e
's/.new//g')

if [ $legacy -eq 1 ]; then
  PCI_ID_FILE=$PCI_ID_FILE.legacy
elif [ $new -eq 1 ]; then
  PCI_ID_FILE=$PCI_ID_FILE.new
fi

I'm not good with string manipulation ...


You are receiving this mail because: