https://bugzilla.novell.com/show_bug.cgi?id=767574 https://bugzilla.novell.com/show_bug.cgi?id=767574#c9 --- Comment #9 from Reinhard Max <max@suse.com> 2012-06-19 11:36:56 CEST --- (In reply to comment #7)
I'm not sure whether it's technically feasible to drop subpackages in an update.
Should need more than adding "Obsoletes: clamav-db" to the main package.
It may make sense to have clamav-db empty except for some %ghost entries that cause removal of the db on package removal.
That's not an issue, because the files that are contained in clamav-db never get used directly. The -db package contains them with .dist appended to the file name and copies them to their canonical location in %post. The main package contains %ghost entries for those names, so the database already goes away with the main package regardless whether it was installed with the -db package, with freshclam or manually.
Calling freshclam _by default_ in the initscript probably isn't such a good idea though as it requires network access which might not be available.
Well, I guess in most cases we can expect network access to be available, so why not try to fetch the files and only complain to the user if it fails instead of always complaining even if auto-fetching would be possible. (In reply to comment #8)
I agree that updated definitions will aready be in place in most cases. However adding the files makes the package behave like the one initially released which is desirable for a released openSUSE version.
The behaviour of the main package won't change, just the -db package would cease to exist.
(It also makes the spec file change easier to review.)
For me it is more important to keep the spec file identical across all products for which I have to prepare ClamAV updates. That's how I did it for the last years.
I would be concerned about changing the behaviour of a package in a non-trivial way.
The only change that I think would qualify as non-trivial wold be the auto-fetching in the init script, and I don't insist on that one. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.