[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#768859: [printer-driver-hpcups] upgrading the packages overwrites the ppd



I have created a new fake printer with

# lpadmin -p TEST-HP -v file:/dev/null -m drv:///hpijs.drv/hp-deskjet_f4200_series-hpijs.ppd

also my real printer is set with this PPD.

I have modified the timestamp assigned at hpcups and hpijs drivers in the file /var/cache/cups/ppd-updates (see below)

1406528241 cups-filters
1413466391 foomatic-db
1395658887 foomatic-db-engine
1402817434 hpijs-ppds
1413466391 openprinting-ppds
1403714525 gutenprint
1315463320 hpcups
1315463320 hpijs


I have added this line as last istruction in the loop present in the ppd_updater() function

echo "ppd=$ppd ppdfound=$ppdfound nickname=$nickname lang=$lang"

I have triggered the updating of PPD with an

# apt-get --reinstall install printer-driver-hpijs

and this is the interesting part of the result:

Elaborazione dei trigger per cups (1.7.5-7)...
Updating PPD files for hpcups ...
PPD for printer Deskjet_F4200 updated
ppd=Deskjet_F4200.ppd ppdfound=1 nickname=HP\ DJ\ f4200 lang=english
PPD for printer TEST-HP updated
ppd=TEST-HP.ppd ppdfound=1 nickname=HP\ DJ\ f4200 lang=english
Updating PPD files for hpijs ...
ppd=Deskjet_F4200.ppd ppdfound=0 nickname=HP\ DJ\ f4200\,\ hpcups\ 3\.14\.6 lang=english
PPD for printer TEST-HP updated
ppd=TEST-HP.ppd ppdfound=1 nickname=HP\ DJ\ f4200 lang=english
Configurazione di printer-driver-hpijs (3.14.6-1+b2)...


why the fake printer still has the old PPD ?

this means that hpcups ignore TEST-HP.ppd ? or hpijs is unable to re-update the ppd for my real printer?


Reply to: