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

Bug 144440

Summary: PORTAGE_BINHOST variable in make.conf makes emerge crash when missing / at the end
Product: Portage Development Reporter: Arvid Picciani <aep>
Component: Core - ConfigurationAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: lucianm
Priority: High Keywords: InVCS
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 181949, 187293    

Description Arvid Picciani 2006-08-19 10:25:17 UTC
white / # emerge -gK glibc
Fetching binary packages info...
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3435, in ?
    mydepgraph=depgraph(myaction,myopts)
  File "/usr/bin/emerge", line 922, in __init__
    portage.db["/"]["bintree"].populate(("--getbinpkg" in myopts), ("--getbinpkgonly" in myopts))
  File "/usr/lib/portage/pym/portage.py", line 5724, in populate
    self.remotepkgs = getbinpkg.dir_get_metadata(settings["PORTAGE_BINHOST"], chunk_size=chunk_size)
  File "/usr/lib/portage/pym/getbinpkg.py", line 424, in dir_get_metadata
    conn,protocol,address,params,headers = create_conn(baseurl, conn)
  File "/usr/lib/portage/pym/getbinpkg.py", line 84, in create_conn
    host,address = string.split(url_parts, "/", 1)
ValueError: need more than 1 value to unpack
white / #
Comment 1 Lucian Muresan 2007-01-25 15:22:22 UTC
On my arm9, portage--2.1.1-r2 actually didn't crash, but just hangs when saying something like "Location has moved:http://address_of_binhost/../"
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2007-06-23 18:40:32 UTC
fixed the direct problem, but can't check if there are further problems caused by this condition later on.
Comment 3 Zac Medico gentoo-dev 2007-06-29 02:52:23 UTC
This has been released in 2.1.3_rc6.