https://bugzilla.novell.com/show_bug.cgi?id=207912 Summary: Avoid running SuSEconfig.fonts twice in the package upgrade case Product: openSUSE 10.2 Version: Alpha 4 plus Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: P5 - None Component: X11 Applications AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: andreas.hanke@gmx-topmail.de QAContact: sndirsch@novell.com Font-related packages are running SuSEconfig.fonts in both the %post and %postun scriptlets. During initial installation of a package, the workflow is: - Execute %pre of new package - Unpack files from the new package - Execute %post of new package (=SuSEconfig.fonts) => SuSEconfig.fonts is executed once. During final removal of a package, the workflow is: - Execute %preun of old package - Remove files from the old package - Execute %postun of old package (=SuSEconfig.fonts) => SuSEconfig.fonts is executed once. But in the upgrade case, the workflow is: - Execute %pre of new package - Unpack files from the new package - Execute %post of new package (=SuSEconfig.fonts) - Execute %preun of old package - Remove files from the old package - Execute %postun of old package (=SuSEconfig.fonts) => SuSEconfig.fonts is executed twice, but only the second run is necessary. The first run can be optimized away by enclosing it into a condition: %post # This condition is fulfilled during initial installation, # but not during an upgrade if [ "$1" -eq "1" ] ; then %run_suseconfig_fonts fi And %postun remains unmodified: %postun %run_suseconfig_fonts Of course the condition can just as well be embedded into the definition of the %run_suseconfig_fonts macro in order to avoid editing all .spec files. Btw. the %run_suseconfig_fonts macro definition still references SuSEconfig.pango, but this does not exist any more (minor issue, doesn't cause any problems). -- 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, or are watching someone who is.