ACK! second try...
John Berninger <[email protected]>
| Newsgroups | gmane.network.up2date.current.devel |
|---|---|
| Message-ID | <[email protected]> |
OK, sorry about this... I just realized I didn't ge tthe replacement code in the patch quite right. I'm attaching a new patch, against base 0.9.3, that should Do The Right Thing(TM). Sorry for the confusion - it's late on a Friday and I've been fighting Windows 2000 all week. -- Thank you, John Berninger Systems Administrator [email protected] Department of Mathematics Box 8205, Harrelson Hall NC State University Raleigh, NC 27695 Phone: (919)515-6315 Fax: (919)515-3798 GPG Key ID: A8C1D45C Fingerprint: B1BB 90CB 5314 3113 CF22 66AE 822D 42A8 A8C1 D45C --
header.patch
(text/plain, 876 B)
diff -bru current-0.9.3/auth.py current-devel/auth.py
--- current-0.9.3/auth.py Tue Jan 8 23:54:39 2002
+++ current-devel/auth.py Fri Jan 25 14:51:05 2002
@@ -177,9 +177,15 @@
else:
cp = ConstructParser.ConstructParser(headers[header_attr])
try:
- self.data['X-RHN-Auth-Channels'] = cp.parseIt()
+ cp.parseIt()
+ tmpHdr = cp.getObject()
except:
- self.data['X-RHN-Auth-Channels'] = ''
+ tmpHdr = ''
+ if not type(tmpHdr[0]) == type([]):
+ self.data['X-RHN-Auth-Channels'] = [tmpHdr]
+ else:
+ self.data['X-RHN-Auth-Channels'] = tmpHdr
+
# we can't print errors from here effectively, so just making
# part of the auth data be empty will ensure a neg auth.