Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 357297

Summary: A space in the path to an ebuild causes failure when running 'ebuild' command
Product: Portage Development Reporter: David <write2David>
Component: ToolsAssignee: Portage team <dev-portage>
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 358927    
Attachments: emerge --info
portage- quote overlays containing spaces

Description David 2011-03-04 03:44:10 UTC
Running 'ebuild my-program-1.0.ebuild digest' fails (without good explanation) if the path to "my-program-1.0.ebuild" includes a space.

The cryptic error message:

ebuild my-program-1.0.ebuild digest
Appending /root/Desktop/My Files/my-overlay to PORTDIR_OVERLAY...
Traceback (most recent call last):
  File "/usr/bin/ebuild", line 157, in <module>
    repo_info = portage.portdb._repo_info[ebuild_portdir]
KeyError: u'/root/Desktop/My Files/my-overlay'

Renaming the "My Files" directory to "My-Files" allows the 'ebuild' command to succeed.

Reproducible: Always

Steps to Reproduce:
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-03-04 06:34:01 UTC
Missing `emerge --info` to get Portage version ...
Comment 2 David 2011-03-04 14:21:43 UTC
Created attachment 264715 [details]
emerge --info

Output of 'emerge --info' is attached.
Comment 3 Zac Medico gentoo-dev 2011-03-04 16:16:48 UTC
Created attachment 264731 [details, diff]
portage- quote overlays containing spaces
Comment 5 Zac Medico gentoo-dev 2011-03-14 19:11:10 UTC
This is fixed in and 2.2.0_alpha27.