Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 350139
Collapse All | Expand All

(-)a/pym/portage/dbapi/bintree.py (-3 / +13 lines)
Lines 23-29 from portage.cache.mappings import slot_dict_class Link Here
23
from portage.const import CACHE_PATH
23
from portage.const import CACHE_PATH
24
from portage.dbapi.virtual import fakedbapi
24
from portage.dbapi.virtual import fakedbapi
25
from portage.dep import Atom, use_reduce, paren_enclose
25
from portage.dep import Atom, use_reduce, paren_enclose
26
from portage.exception import InvalidPackageName, \
26
from portage.exception import AlarmSignal, InvalidPackageName, \
27
	PermissionDenied, PortageException
27
	PermissionDenied, PortageException
28
from portage.localization import _
28
from portage.localization import _
29
from portage import _movefile
29
from portage import _movefile
Lines 806-812 class binarytree(object): Link Here
806
							rmt_idx.readBody(f_dec)
806
							rmt_idx.readBody(f_dec)
807
							pkgindex = rmt_idx
807
							pkgindex = rmt_idx
808
				finally:
808
				finally:
809
					f.close()
809
					# Timeout after 5 seconds, in case close() blocks
810
					# indefinitely (see bug #350139).
811
					try:
812
						try:
813
							AlarmSignal.register(5)
814
							f.close()
815
						finally:
816
							AlarmSignal.unregister()
817
					except AlarmSignal:
818
						writemsg("\n\n!!! %s\n" % \
819
							_("Timed out while closing connection to binhost"),
820
							noiselevel=-1)
810
			except EnvironmentError as e:
821
			except EnvironmentError as e:
811
				writemsg(_("\n\n!!! Error fetching binhost package" \
822
				writemsg(_("\n\n!!! Error fetching binhost package" \
812
					" info from '%s'\n") % base_url)
823
					" info from '%s'\n") % base_url)
813
- 

Return to bug 350139