Bug 928839 - [abrt] yum-utils-1.1.31-12.fc20: os.py:157:makedirs:OSError: [Errno 2] No such file or directory: ''
Summary: [abrt] yum-utils-1.1.31-12.fc20: os.py:157:makedirs:OSError: [Errno 2] No suc...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: rawhide
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:dca4042183075d111d697b81b08...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-28 14:47 UTC by Christopher Meng
Modified: 2013-03-29 11:21 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-03-29 10:23:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (650 bytes, text/plain)
2013-03-28 14:47 UTC, Christopher Meng
no flags Details
File: core_backtrace (407 bytes, text/plain)
2013-03-28 14:47 UTC, Christopher Meng
no flags Details
File: environ (3.43 KB, text/plain)
2013-03-28 14:47 UTC, Christopher Meng
no flags Details

Description Christopher Meng 2013-03-28 14:47:29 UTC
Description of problem:
Didnt specify the destdir

Version-Release number of selected component:
yum-utils-1.1.31-12.fc20

Additional info:
cmdline:        /usr/bin/python /usr/bin/yumdownloader --destdir= nginx --source
dso_list:       python-libs-2.7.3-35.fc20.i686
executable:     /usr/bin/yumdownloader
kernel:         3.9.0-0.rc4.git0.1.fc20.i686.PAE
uid:            1000
ureports_counter: 1

Truncated backtrace:
os.py:157:makedirs:OSError: [Errno 2] No such file or directory: ''

Traceback (most recent call last):
  File "/usr/bin/yumdownloader", line 273, in <module>
    util = YumDownloader()
  File "/usr/bin/yumdownloader", line 73, in __init__
    self.main()
  File "/usr/bin/yumdownloader", line 98, in main
    self.exit_code = self.downloadPackages(opts)
  File "/usr/bin/yumdownloader", line 202, in downloadPackages
    os.makedirs(opts.destdir)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 2] No such file or directory: ''

Local variables in innermost frame:
tail: ''
head: ''
name: ''
mode: 511

Comment 1 Christopher Meng 2013-03-28 14:47:33 UTC
Created attachment 717684 [details]
File: backtrace

Comment 2 Christopher Meng 2013-03-28 14:47:36 UTC
Created attachment 717685 [details]
File: core_backtrace

Comment 3 Christopher Meng 2013-03-28 14:47:39 UTC
Created attachment 717686 [details]
File: environ

Comment 4 Zdeněk Pavlas 2013-03-29 10:23:48 UTC
> cmdline:        /usr/bin/python /usr/bin/yumdownloader --destdir= nginx --source

Remove the space after "=".

Comment 5 Christopher Meng 2013-03-29 10:51:13 UTC
So, will yum prompt users when they input such incorrect command instead of leaving a abrt error report?

Comment 6 Zdeněk Pavlas 2013-03-29 11:21:09 UTC
This is an user error, similiar to choosing a read-only --destdir.  However, the same exception could be raised when a real bug in Yum is hit, and in this case we want the report.


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