Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 267104 | Differences between
and this patch

Collapse All | Expand All

(-)pym/portage/__init__.py (-2 / +24 lines)
Lines 3927-3932 Link Here
3927
3970
3928
		myfile_path = os.path.join(mysettings["DISTDIR"], myfile)
3971
		myfile_path = os.path.join(mysettings["DISTDIR"], myfile)
3929
		has_space = True
3972
		has_space = True
3973
		has_space_superuser = False
3930
		file_lock = None
3974
		file_lock = None
3931
		if listonly:
3975
		if listonly:
3932
			writemsg_stdout("\n", noiselevel=-1)
3976
			writemsg_stdout("\n", noiselevel=-1)
Lines 3944-3951 Link Here
3944
					mysize = 0
3988
					mysize = 0
3945
				if (size - mysize + vfs_stat.f_bsize) >= \
3989
				if (size - mysize + vfs_stat.f_bsize) >= \
3946
					(vfs_stat.f_bsize * vfs_stat.f_bavail):
3990
					(vfs_stat.f_bsize * vfs_stat.f_bavail):
3947
					writemsg("!!! Insufficient space to store %s in %s\n" % (myfile, mysettings["DISTDIR"]), noiselevel=-1)
3991
3948
					has_space = False
3992
					if (size - mysize + vfs_stat.f_bsize) >= \
3993
						(vfs_stat.f_bsize * vfs_stat.f_bfree):
3994
						has_space_superuser = True
3995
3996
					if not has_space_superuser:
3997
						has_space = False
3998
					elif secpass < 2:
3999
						has_space = False
4000
					elif userfetch:
4001
						has_space = False
4002
4003
			if not has_space:
4004
				writemsg("!!! Insufficient space to store %s in %s\n" % \
4005
					(myfile, mysettings["DISTDIR"]), noiselevel=-1)
4006
4007
				if has_space_superuser:
4008
					writemsg("!!! Insufficient privileges to use " + \
4009
						"remaining space.\n", noiselevel=-1)
4010
					if userfetch:
4011
						writemsg("!!! You may set FEATURES=\"-userfetch\"" + \
4012
							" in /etc/make.conf in order to fetch with\n" + \
4013
							"!!! superuser privileges.\n", noiselevel=-1)
3949
4014
3950
			if distdir_writable and use_locks:
4015
			if distdir_writable and use_locks:
3951
4016

Return to bug 267104