Bug 1044997 - [abrt] createrepo: genpkgmetadata.py:202:parse_args:IOError: [Errno 2] No such file or directory: 'pkglist'
Summary: [abrt] createrepo: genpkgmetadata.py:202:parse_args:IOError: [Errno 2] No suc...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: createrepo
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:317e08eb7df6388effdc2c49925...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-19 12:17 UTC by Michael Schwendt
Modified: 2014-02-22 00:59 UTC (History)
3 users (show)

Fixed In Version: createrepo-0.10.3-1.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-22 00:59:48 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (1.58 KB, text/plain)
2013-12-19 12:17 UTC, Michael Schwendt
no flags Details
File: environ (1.38 KB, text/plain)
2013-12-19 12:17 UTC, Michael Schwendt
no flags Details

Description Michael Schwendt 2013-12-19 12:17:01 UTC
Description of problem:
Made a typo while testing for bodhi karma, and lack of error handling in createrepo caused the Python exception that triggers ABRT:

$ createrepo -i doesnotexist repodir
Traceback (most recent call last):
  File "/usr/share/createrepo/genpkgmetadata.py", line 307, in <module>
    main(sys.argv[1:])
  File "/usr/share/createrepo/genpkgmetadata.py", line 253, in main
    conf = parse_args(args, conf)
  File "/usr/share/createrepo/genpkgmetadata.py", line 202, in parse_args
    pfo = open(conf.pkglist, 'r')
IOError: [Errno 2] No such file or directory: 'doesnotexist'

Version-Release number of selected component:
createrepo-0.10.1-0.fc20

Additional info:
reporter:       libreport-2.1.10
cmdline:        /usr/bin/python -t /usr/share/createrepo/genpkgmetadata.py -i pkglist repo
executable:     /usr/share/createrepo/genpkgmetadata.py
kernel:         3.12.5-301.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
genpkgmetadata.py:202:parse_args:IOError: [Errno 2] No such file or directory: 'pkglist'

Traceback (most recent call last):
  File "/usr/share/createrepo/genpkgmetadata.py", line 307, in <module>
    main(sys.argv[1:])
  File "/usr/share/createrepo/genpkgmetadata.py", line 253, in main
    conf = parse_args(args, conf)
  File "/usr/share/createrepo/genpkgmetadata.py", line 202, in parse_args
    pfo = open(conf.pkglist, 'r')
IOError: [Errno 2] No such file or directory: 'pkglist'

Local variables in innermost frame:
opt: <Option at 0x16da170: --compress-type>
argsleft: ['repo']
args: ['-i', 'pkglist', 'repo']
_def: 'sha256'
directories: ['repo']
parser: <optparse.OptionParser instance at 0x16d6290>
def_workers: 0
lst: []
_avail: set(['sha256', 'sha1', 'sha384', 'sha512', 'md5'])
conf: <createrepo.MetaDataConfig object at 0x16afdd0>
directory: 'repo'
opts: <Values at 0x16da290: {'checkts': False, 'deltas': False, 'verbose': False, 'content_tags': [], 'oldpackage_paths': [], 'skip_symlinks': False, 'num_deltas': 1, 'max_delta_rpm_size': 100000000, 'nodatabase': False, 'compress_type': 'compat', 'skip_stat': False, 'outputdir': None, 'excludes': [], 'workers': 0, 'basedir': '/home/ms20b/repo/repodata', 'split': False, 'pretty': False, 'pkglist': 'pkglist', 'revision': None, 'profile': False, 'changelog_limit': None, 'retain_old_md': 0, 'sumtype': 'sha256', 'update': False, 'baseurl': None, 'cachedir': None, 'includepkg': [], 'update_md_path': None, 'xz': False, 'database': True, 'unique_md_filenames': True, 'quiet': False, 'read_pkgs_list': None, 'repo_tags': [], 'groupfile': None, 'distro': []}>

Comment 1 Michael Schwendt 2013-12-19 12:17:06 UTC
Created attachment 838956 [details]
File: backtrace

Comment 2 Michael Schwendt 2013-12-19 12:17:08 UTC
Created attachment 838957 [details]
File: environ

Comment 3 Fedora Update System 2014-02-13 12:32:12 UTC
createrepo-0.10.3-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/createrepo-0.10.3-1.fc20

Comment 4 lnie 2014-02-14 04:04:55 UTC
createrepo-0.10.3-1.fc20 works fine

Comment 5 Fedora Update System 2014-02-14 08:11:11 UTC
Package createrepo-0.10.3-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing createrepo-0.10.3-1.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-2527/createrepo-0.10.3-1.fc20
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2014-02-22 00:59:48 UTC
createrepo-0.10.3-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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