Bug 730330

Summary: createrepo leaves behind temporary directory after creating a repo
Product: [Fedora] Fedora Reporter: Mike Burns <mburns>
Component: createrepoAssignee: Luke Macken <lmacken>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 16CC: apevec, james.antill, lmacken, pfrields
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-12 16:18:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.