Bug 495867 - traceback when creating delta-repo with sqlite
Summary: traceback when creating delta-repo with sqlite
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: createrepo
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Luke Macken
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PrestoTestDay
TreeView+ depends on / blocked
 
Reported: 2009-04-15 09:21 UTC by Petr Sklenar
Modified: 2016-09-20 02:39 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-04-15 19:21:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Petr Sklenar 2009-04-15 09:21:30 UTC
Description of problem:
traceback when updating existing repo with new option --database + --groupfile

Version-Release number of selected component (if applicable):
createrepo-0.9.7-1.fc11.noarch
presto-utils-0.3.4-2.fc11.noarch
yum-3.2.22-4.fc11.noarch

How reproducible:
always

Steps to Reproduce:
1. 
# createrepo --deltas --oldpackagedirs=/tmp/old/porkchop.redhat.com/released/F-11/Beta/Fedora/i386/os/Packages/ /tmp/new/download.englab.brq.redhat.com/pub/fedora/linux/development/i386/os/Packages/
2.
# then update repo with groupfile and using swith --database
createrepo --update --database --groupfile=/tmp/new/download.englab.brq.redhat.com/pub/fedora/linux/development/i386/os/repodata/108b79c10bd0b221bbecea03fcc2766fb4e0c5aea3dc45bc87fea769ea78b62f-comps-rawhide.xml --deltas --oldpackagedirs=/tmp/old/porkchop.redhat.com/released/F-11/Beta/Fedora/i386/os/Packages/ /tmp/new/download.englab.brq.redhat.com/pub/fedora/linux/development/i386/os/Packages 
3. traceback
  
Actual results:
[root@hp-dl360g5-01 old]# createrepo --update --database --groupfile=/tmp/new/download.englab.brq.redhat.com/pub/fedora/linux/development/i386/os/repodata/108b79c10bd0b221bbecea03fcc2766fb4e0c5aea3dc45bc87fea769ea78b62f-comps-rawhide.xml --deltas --oldpackagedirs=/tmp/old/porkchop.redhat.com/released/F-11/Beta/Fedora/i386/os/Packages/ /tmp/new/download.englab.brq.redhat.com/pub/fedora/linux/development/i386/os/Packages/
13250/13250 - torque-gui-2.1.10-7.fc11.i586.rpm                                 
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Saving delta metadata
Generating sqlite DBs
Traceback (most recent call last):
  File "/usr/share/createrepo/genpkgmetadata.py", line 222, in <module>
    main(sys.argv[1:])
  File "/usr/share/createrepo/genpkgmetadata.py", line 200, in main
    mdgen.doRepoMetadata()
  File "/usr/lib/python2.6/site-packages/createrepo/__init__.py", line 805, in doRepoMetadata
    os.rename(tmp_result_path, resultpath)
OSError: [Errno 2] No such file or directory
[root@hp-dl360g5-01 old]# which createrepo
/usr/bin/createrepo
[root@hp-dl360g5-01 old]# rpm -qf /usr/bin/createrepo
createrepo-0.9.7-1.fc11.noarch


Expected results:
db is updated with new groupfile

Additional info:

Comment 1 Petr Sklenar 2009-04-15 10:31:57 UTC
It happens often to me, it seems that its because of using sqlite DB

Comment 2 seth vidal 2009-04-15 19:21:00 UTC
fixed in 0.9.7-3 and 0.9.7-4


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