Bug 730330 - createrepo leaves behind temporary directory after creating a repo
Summary: createrepo leaves behind temporary directory after creating a repo
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: createrepo
Version: 16
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Luke Macken
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-12 13:58 UTC by Mike Burns
Modified: 2016-09-20 02:42 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-12 16:18:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mike Burns 2011-08-12 13:58:59 UTC
Description of problem:

When either creating or re-creating a repo, a temporary directory is created and left on /tmp

Version-Release number of selected component (if applicable):
createrepo-0.9.9-3.fc15.noarch
createrepo-0.9.9-4.fc15.noarch

How reproducible:
Always

Steps to Reproduce:
1. Have an rpm somewhere
2. createrepo
3.
  
Actual results:
/tmp/tmpXXXXX is still there after createrepo

Expected results:
temp files cleaned up

Additional info:
Reproduced with both -3 and -4
Does not occur with createrepo-0.9.8-5.fc14.noarch


# rpm -q createrepo
createrepo-0.9.9-4.fc15.noarch
# ls
createrepo-0.9.9-3.fc15.noarch.rpm  createrepo-0.9.9-6.fc16.noarch.rpm
# ls /tmp
keyring-UXwA3I  orbit-root  pulse-mUfnXuaIAZTB  ssh-fDdPD23352
# createrepo .
Spawning worker 0 with 2 pkgs
Workers Finished
Gathering worker results

Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
# ls /tmp
keyring-UXwA3I  orbit-root  pulse-mUfnXuaIAZTB  ssh-fDdPD23352  tmpaH4NLw
# createrepo .
Spawning worker 0 with 2 pkgs
Workers Finished
Gathering worker results

Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
# ls /tmp
keyring-UXwA3I  pulse-mUfnXuaIAZTB  tmpaH4NLw
orbit-root      ssh-fDdPD23352      tmpFlqZAc
#

Comment 1 seth vidal 2011-08-12 16:18:16 UTC
1. what's the big deal about tmpfiles? This is the 3rd bug I've gotten about them and I don't see the importance, there isn't much of anything in there.

2. I've applied a patch upstream for this.

Comment 2 Alan Pevec 2011-08-12 16:24:12 UTC
(In reply to comment #1)
> 1. what's the big deal about tmpfiles? This is the 3rd bug I've gotten about
> them and I don't see the importance, there isn't much of anything in there.

Maybe I'm anal, but IMHO it's nice to cleanup after yourself.
In our case we run continuous build, and part of it is createrepo so it accumulates quickly.

> 2. I've applied a patch upstream for this.

Thanks.


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