summaryrefslogtreecommitdiffstats
path: root/urlinstall.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-10 23:47:02 +0000
committerErik Troan <ewt@redhat.com>2000-05-10 23:47:02 +0000
commite8e51bea1d1b1c7b451bbcdbcd46ea4b6648d4a6 (patch)
tree4827cbc51fe1ef1f3155792902de997342326bff /urlinstall.py
parentc17a74a82e71857fdb02d8d90df10b39fa4060d1 (diff)
downloadanaconda-e8e51bea1d1b1c7b451bbcdbcd46ea4b6648d4a6.tar.gz
anaconda-e8e51bea1d1b1c7b451bbcdbcd46ea4b6648d4a6.tar.xz
anaconda-e8e51bea1d1b1c7b451bbcdbcd46ea4b6648d4a6.zip
added proper inheritance for install methods
Diffstat (limited to 'urlinstall.py')
-rw-r--r--urlinstall.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/urlinstall.py b/urlinstall.py
index af5601e42..46479c6d7 100644
--- a/urlinstall.py
+++ b/urlinstall.py
@@ -1,6 +1,7 @@
# Install method for disk image installs (CD & NFS)
from comps import ComponentSet, HeaderList
+from installmethod import InstallMethod
import os
import rpm
import time
@@ -18,7 +19,7 @@ import todo
FILENAME = 1000000
-class InstallMethod:
+class UrlInstallMethod(InstallMethod):
def readComps(self, hdlist):
return ComponentSet(self.baseUrl + '/RedHat/base/comps',
@@ -82,13 +83,9 @@ class InstallMethod:
return HeaderList(hl)
- def targetFstab(self, fstab):
- pass
-
- def filesDone(self):
- pass
-
def __init__(self, url):
+ InstallMethod.__init__(self)
+
i = string.index(url, '://') + 2
self.baseUrl = url[0:i]
rem = url[i:]