the getbinpkg.py code tries to import both http and https support even if https support isnt necessary. this causes any system with https support omitted (no openssl) to fail hard. looking at portage-2.1.8.3 and portage-2.1.9.24 ... * checking portage-2.1.9.24.tar.bz2 ;-) ... [ ok ] !!! CANNOT IMPORT HTTP.CLIENT: cannot import name HTTPSConnection Traceback (most recent call last): ... from the getbinpkg.py code: try: try: from http.client import HTTPConnection as http_client_HTTPConnection from http.client import HTTPSConnection as http_client_HTTPSConnection from http.client import BadStatusLine as http_client_BadStatusLine from http.client import ResponseNotReady as http_client_ResponseNotReady except ImportError: from httplib import HTTPConnection as http_client_HTTPConnection from httplib import HTTPSConnection as http_client_HTTPSConnection from httplib import BadStatusLine as http_client_BadStatusLine from httplib import ResponseNotReady as http_client_ResponseNotReady except ImportError as e: sys.stderr.write(colorize("BAD","!!! CANNOT IMPORT HTTP.CLIENT: ")+str(e)+"\n")
hmm, my pyc/pyo files were screwed up for some reason. after deleting all portage related ones, it emerged fine. so if my code-level analysis of getbinpkg is incorrect, feel free to close as INVALID ...
Yeah, it's invalid. Anyway, it's fixed so that it won't show the annoying "!! CANNOT IMPORT HTTP.CLIENT" message in this case: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=93ffb57b06de7046309174d94e4bb6b6f1467c3c