summaryrefslogtreecommitdiffstats
path: root/urlinstall.py
diff options
context:
space:
mode:
authorPaul Nasrat <pnasrat@redhat.com>2005-11-15 01:40:59 +0000
committerPaul Nasrat <pnasrat@redhat.com>2005-11-15 01:40:59 +0000
commitf95b509f3549d91a6121bc1e5e143da8cac9092d (patch)
tree9958e46eb944b8c5a3a9b44685bbbd00c2905d51 /urlinstall.py
parent26959746243cf9cde6e04bbbc75e01ce35fd4094 (diff)
downloadanaconda-f95b509f3549d91a6121bc1e5e143da8cac9092d.tar.gz
anaconda-f95b509f3549d91a6121bc1e5e143da8cac9092d.tar.xz
anaconda-f95b509f3549d91a6121bc1e5e143da8cac9092d.zip
Remove legacy metadata handing
Diffstat (limited to 'urlinstall.py')
-rw-r--r--urlinstall.py37
1 files changed, 0 insertions, 37 deletions
diff --git a/urlinstall.py b/urlinstall.py
index 92fd34f00..04162680b 100644
--- a/urlinstall.py
+++ b/urlinstall.py
@@ -164,43 +164,6 @@ class UrlInstallMethod(InstallMethod):
def unlinkFilename(self, fullName):
os.remove(fullName)
- def readHeaders(self):
- hdurl = "%s/%s/base/hdlist" % (self.baseUrl, productPath)
-
- try:
- url = grabber.urlopen (hdurl, retry = 5)
- except grabber.URLGrabError, e:
- log.critical ("URLGrabError: %s occurred getting %s", e.strerror,
- hdurl)
- raise FileCopyException
-
- raw = url.read(16)
- if raw is None or len(raw) < 1:
- raise TypeError, "header list is empty!"
-
- hl = []
- while (raw and len(raw)>0):
- info = struct.unpack("iiii", raw)
- magic1 = socket.ntohl(info[0]) & 0xffffffffL
- if (magic1 != 0x8eade801L or info[1]):
- raise TypeError, "bad magic in header"
-
- il = socket.ntohl(info[2])
- dl = socket.ntohl(info[3])
- totalSize = il * 16 + dl;
- hdrString = raw[8:] + url.read(totalSize)
- hdr = rpm.headerLoad(hdrString)
- hl.append(hdr)
-
- raw = url.read(16)
-
- return HeaderList(hl)
-
- def mergeFullHeaders(self, hdlist):
- fn = self.getFilename("%s/base/hdlist2" % (productPath,), callback=None)
- hdlist.mergeFullHeaders(fn)
- os.unlink(fn)
-
def setIntf(self, intf):
self.intf = intf