summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-03 11:46:45 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-03 11:46:45 -0700
commit0596519a09288ac73ce84761284cf734ef1a9867 (patch)
tree22683405453ba024df49e2a64018f7e2af496750
parent5f41810c5d0fdee5f40a047a9e651a30e91f4556 (diff)
downloadportage-0596519a09288ac73ce84761284cf734ef1a9867.tar.gz
portage-0596519a09288ac73ce84761284cf734ef1a9867.tar.bz2
portage-0596519a09288ac73ce84761284cf734ef1a9867.zip
Remove code related to $DISTDIR/.locks since that directory is
actually unused.
-rw-r--r--pym/portage/package/ebuild/fetch.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/pym/portage/package/ebuild/fetch.py b/pym/portage/package/ebuild/fetch.py
index 50c591f9d..b95980539 100644
--- a/pym/portage/package/ebuild/fetch.py
+++ b/pym/portage/package/ebuild/fetch.py
@@ -456,8 +456,6 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
# when inside fakeroot.
dir_gid = 0
distdir_dirs = [""]
- if "distlocks" in features:
- distdir_dirs.append(".locks")
try:
for x in distdir_dirs:
@@ -504,14 +502,6 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
noiselevel=-1)
can_fetch = False
- if can_fetch and use_locks and locks_in_subdir:
- distlocks_subdir = os.path.join(mysettings["DISTDIR"], locks_in_subdir)
- if not os.access(distlocks_subdir, os.W_OK):
- writemsg(_("!!! No write access to write to %s. Aborting.\n") % distlocks_subdir,
- noiselevel=-1)
- return 0
- del distlocks_subdir
-
distdir_writable = can_fetch and not fetch_to_ro
failed_files = set()
restrict_fetch_msg = False