extras-repoclosure PackageOwners.py,1.14,1.15
Michael Schwendt (mschwendt)
fedora-extras-commits at redhat.com
Tue Apr 1 16:44:34 UTC 2008
Author: mschwendt
Update of /cvs/fedora/extras-repoclosure
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7502
Modified Files:
PackageOwners.py
Log Message:
Adapt for FAS2 which has moved and changed the dump-group.cgi
Index: PackageOwners.py
===================================================================
RCS file: /cvs/fedora/extras-repoclosure/PackageOwners.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- PackageOwners.py 25 Nov 2007 01:07:21 -0000 1.14
+++ PackageOwners.py 1 Apr 2008 16:44:34 -0000 1.15
@@ -245,7 +245,17 @@
def _downloadfrompkgdb(self):
- fasdump = self._getlinesfromurl('https://admin.fedoraproject.org/accounts/dump-group.cgi')
+ # Construct an URL that makes FancyURLopener use authentication
+ # with the first request and not just in return to 401.
+ authinfo = ''
+ if self.username:
+ authinfo = self.username
+ if self.password:
+ authinfo += ':'+self.password
+ authinfo += '@'
+ fas2authurl = 'https://%sadmin.fedoraproject.org/accounts/group/dump/' % authinfo
+
+ fasdump = self._getlinesfromurl(fas2authurl)
self.usermap = {}
for line in fasdump:
fields = line.split(',')
More information about the scm-commits
mailing list