Bug 172534 - tetex scripts leave "droppings"
Summary: tetex scripts leave "droppings"
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: tetex
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-11-06 14:17 UTC by Michal Jaegermann
Modified: 2013-07-02 23:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-11-09 11:28:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
patch to ensure that cleanup code is really called (1.67 KB, patch)
2005-11-06 14:17 UTC, Michal Jaegermann
no flags Details | Diff

Description Michal Jaegermann 2005-11-06 14:17:56 UTC
Description of problem:

Many invocations of 'tetexconfig', 'updmap' and 'fmutil' scripts leave behind
temporary directories.  To see some examples try 'tetexconfig-sys conf'
or 'updmap --help'.

The problem is that although temporary directories for all these utilities
are created always, sometimes in a completely reduntant manner (that would
prevent 'updmap --help' from working with /tmp remounted read-only - say due
to a filesystem errors), but removal is strangely baroque and not invoked
on many code paths.  Hopefuly sometimes it is but I quickly lost my patience
with those scripts.

Attached patch cuts through the chase and ensures that we are not left
with junk.  It is "minimal" in that sense that it does not try to fix
and turns of the original code.  It may cause in the current situation too many
calls to 'cleanup()' but this does not look like a problem.

Version-Release number of selected component (if applicable):
tetex-3.0-6.FC4 and others

How reproducible:
always

Comment 1 Michal Jaegermann 2005-11-06 14:17:56 UTC
Created attachment 120773 [details]
patch to ensure that cleanup code is really called

Comment 2 Jindrich Novy 2005-11-07 08:59:05 UTC
Thanks for the patch! The multiple calls to cleanup() shouldn't cause anything
bad IMO. It's texconfig not tetexconfig btw.

Comment 3 Jindrich Novy 2005-11-09 11:28:46 UTC
Applied since 3.0-9.


Note You need to log in before you can comment on or make changes to this bug.