Bug 161194

Summary: updmap-sys needs to run only in installation
Product: [Fedora] Fedora Reporter: Sarantis Paskalis <paskalis>
Component: tetex-font-kerkisAssignee: Orphan Owner <extras-orphan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-06-24 12:19:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch to enable updmap-sys only when installing (not updating) none

Description Sarantis Paskalis 2005-06-21 09:47:22 UTC
Description of problem:
During the update of tetex-font-kerkis, the %post scriptlet apears to fail and
the procedure does not remove the old entry from the rpm database.
The %post procedure is an invocation of updmap-sys, which checks the existing
map file updmap.cfg and if kerkis.map is not present (or disabled), the script
adds it (or enables it).

If no changes are necessary (i.e. the map is already present and enabled), the
script exits with a status of 1, stating that no changes are needed.  Its
execution was essentially a noop.  However, rpm receives the exit status of 1
and considers it as a failure notice, aborting any further action.

To remedy this, we just need to invoke updmap-sys only when installing and not
when updating the package.  Patch attached.

Version-Release number of selected component (if applicable):
tetex-font-kerkis-2.0-5.fc4

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Sarantis Paskalis 2005-06-21 09:47:22 UTC
Created attachment 115739 [details]
patch to enable updmap-sys only when installing (not updating)

Comment 2 Michael Schwendt 2005-06-24 12:19:01 UTC
applied in tetex-font-kerkis-2.0-6.fc4