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

(-)pym/portage.py (+9 lines)
Lines 2109-2114 Link Here
2109
				return 0
2109
				return 0
2110
			del distlocks_subdir
2110
			del distlocks_subdir
2111
	for myfile in filedict.keys():
2111
	for myfile in filedict.keys():
2112
		"""
2113
		fetched  status
2114
		0        nonexistent
2115
		1        partially downloaded
2116
		2        completely downloaded
2117
		"""
2112
		myfile_path = os.path.join(mysettings["DISTDIR"], myfile)
2118
		myfile_path = os.path.join(mysettings["DISTDIR"], myfile)
2113
		fetched=0
2119
		fetched=0
2114
		file_lock = None
2120
		file_lock = None
Lines 2289-2294 Link Here
2289
											try:
2295
											try:
2290
												os.unlink(mysettings["DISTDIR"]+"/"+myfile)
2296
												os.unlink(mysettings["DISTDIR"]+"/"+myfile)
2291
												writemsg(">>> Deleting invalid distfile. (Improper 404 redirect from server.)\n")
2297
												writemsg(">>> Deleting invalid distfile. (Improper 404 redirect from server.)\n")
2298
												fetched = 0
2299
												continue
2292
											except SystemExit, e:
2300
											except SystemExit, e:
2293
												raise
2301
												raise
2294
											except:
2302
											except:
Lines 2297-2302 Link Here
2297
										raise
2305
										raise
2298
									except:
2306
									except:
2299
										pass
2307
										pass
2308
								fetched = 1
2300
								continue
2309
								continue
2301
							if not fetchonly:
2310
							if not fetchonly:
2302
								fetched=2
2311
								fetched=2

Return to bug 145601