Properly join CUSTOM_MIRRORS_FILE with PORTAGE_CONFIG_ROOT in portage.fetch().
authorZac Medico <zmedico@gentoo.org>
Tue, 2 May 2006 06:10:10 +0000 (06:10 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 2 May 2006 06:10:10 +0000 (06:10 -0000)
svn path=/main/trunk/; revision=3302

pym/portage.py

index 135bd6faca4cd9955c0c937b4ad8d45179bf6994..b5da443737bc3ae50480c9cf413a3631648282fe 100644 (file)
@@ -1851,7 +1851,8 @@ def fetch(myuris, mysettings, listonly=0, fetchonly=0, locks_in_subdir=".locks",
 
        check_config_instance(mysettings)
 
-       custommirrors=grabdict(CUSTOM_MIRRORS_FILE,recursive=1)
+       custommirrors = grabdict(os.path.join(mysettings["PORTAGE_CONFIG_ROOT"],
+               CUSTOM_MIRRORS_FILE.lstrip(os.path.sep)), recursive=1)
 
        mymirrors=[]