Bug 928839

Summary: [abrt] yum-utils-1.1.31-12.fc20: os.py:157:makedirs:OSError: [Errno 2] No such file or directory: ''
Product: [Fedora] Fedora Reporter: Christopher Meng <i>
Component: yum-utilsAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: admiller, packaging-team-maint, tim.lauridsen, zpavlas
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:dca4042183075d111d697b81b0808fe11530d9d9
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-29 10:23: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:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: core_backtrace
none
File: environ none

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.