Re: Silly Packaging Problem
Bruce Sass <email@example.com> writes:
> On Thu August 10 2006 10:16, martin f krafft wrote:
>> also sprach Goswin von Brederlow
> <firstname.lastname@example.org> [2006.08.10.1647 +0100]:
>> > How about allowing conffiles to list files that are generated at
>> > install time and are not included in the deb?
>> You can, but then you run up against policy. You are not allowed to
>> touch a conffile with a script.
> Is there anything prohibiting an "update-package.list" command?
> Would updating /var/lib/dpkg/info/*.list files without touching the
> appropriate Installed-Size: field be OK?
> Is there any way to get a handle on how much more CPU time and HDD space
> would be used if all packages updated their meta-info at install time?
> - Bruce
The problem is that dpkg has the list of files internaly while it
unpacks new debs and cleans up after old debs. It would most likely
overwrite your changed .list file after your maintainer script is
done. And if not then the next upgrade would delete those added
entries as they are no longer in the deb.
Allowing packages to add files to the file listing has do be done is
close cooperation with dpkg and aybe use a seperate meta file.