summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
authorPaul Nasrat <pnasrat@redhat.com>2006-09-25 11:31:36 +0000
committerPaul Nasrat <pnasrat@redhat.com>2006-09-25 11:31:36 +0000
commit78cc2c0a7f1baa0945e47cbda570ec0cf92caabb (patch)
treebf10469fef8f2c286d6f3e1462004816f6f73f59 /yuminstall.py
parent8bad1309ac73f10ba2ff9981773bba1dda922b76 (diff)
downloadanaconda-78cc2c0a7f1baa0945e47cbda570ec0cf92caabb.tar.gz
anaconda-78cc2c0a7f1baa0945e47cbda570ec0cf92caabb.tar.xz
anaconda-78cc2c0a7f1baa0945e47cbda570ec0cf92caabb.zip
Attempt to support loopback url mounts (#207904) and related cleanup of
urlinstall.
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/yuminstall.py b/yuminstall.py
index 0e8366587..05e149c8e 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -17,7 +17,7 @@ import os.path
import shutil
import timer
import warnings
-import re
+import types
import rpm
import rpmUtils
@@ -52,10 +52,6 @@ import isys
import whiteout
-# set to the number of CDs the distribution currently has. might increase
-# or decrease over time
-NUMBER_OF_CDS = 5
-
#XXX: this needs to be somewhere better - probably method
def getcd(po):
try:
@@ -184,7 +180,10 @@ class AnacondaYumRepo(YumRepository):
#self.gpgkey = "%s/RPM-GPG-KEY-fedora" % (method, )
if uri and not mirrorlist:
- self.baseurl = [ uri ]
+ if type(uri) == types.ListType:
+ self.baseurl = uri
+ else:
+ self.baseurl = [ uri ]
elif mirrorlist and not uri:
self.mirrorlist = mirrorlist