Bug 1044997

Summary: [abrt] createrepo: genpkgmetadata.py:202:parse_args:IOError: [Errno 2] No such file or directory: 'pkglist'
Product: [Fedora] Fedora Reporter: Michael Schwendt <bugs.michael>
Component: createrepoAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: lmacken, lnie, packaging-team-maint
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/a80ecd54213b179fe5e7864257642139618c064d
Whiteboard: abrt_hash:317e08eb7df6388effdc2c499251a88803991118
Fixed In Version: createrepo-0.10.3-1.fc20 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-22 00:59:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
File: backtrace
none
File: environ none

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.