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

Can packages add to their installed list of files?



Hello,

I'd like to know if packages can add files to the list of files that
belong to them, and if yes, how it should be done.

My problem here is that I have a package that installs files that can
be automatically localized. I don't want to force a user to get files
localized for each language actually handled (in general, at this point
this is not a problem), so the postinst script is able to do the
localization of the files installed. But I would like have the generated
files marked as belonging to the package, and removed by dpkg. Is it
possible?

(I could add to /var/lib/dpkg/info/mypackage.list but I'd rather have an
install-additional command that does it but could be changed if the way
dpk stores the list of files changes; and in any case, does it suffice
to change the .list file)?

If not, I can still store the name of the generated files and remove them
in my postrm. But it's not as nice...

Yves.



Reply to: