summaryrefslogtreecommitdiffstats
path: root/installmethod.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-11-04 16:23:32 +0000
committerJeremy Katz <katzj@redhat.com>2002-11-04 16:23:32 +0000
commitf8cc4da17af411e9899504e6dfb2fc5f68037e96 (patch)
tree204127464eb10387ae218478aba21095f96d7bf5 /installmethod.py
parent1071f5cf6167c874ce972bd57a884e3a3db445a0 (diff)
downloadanaconda-f8cc4da17af411e9899504e6dfb2fc5f68037e96.tar.gz
anaconda-f8cc4da17af411e9899504e6dfb2fc5f68037e96.tar.xz
anaconda-f8cc4da17af411e9899504e6dfb2fc5f68037e96.zip
use file:/// for file urls to make urllib2 happy (this method is only used for finding the comps file, so it's safe to do this)
Diffstat (limited to 'installmethod.py')
-rw-r--r--installmethod.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/installmethod.py b/installmethod.py
index ca183a404..a933d886a 100644
--- a/installmethod.py
+++ b/installmethod.py
@@ -32,8 +32,8 @@ class InstallMethod:
for pre in tryloc:
tmpname = pre + "/" + file
if os.access(tmpname, os.R_OK):
- log("Using %s", tmpname)
- return tmpname
+ log("Using file://%s", tmpname)
+ return "file://%s" %(tmpname,)
log("Unable to find %s", file)
return None