- 论坛徽章:
- 0
|
# Copyright (C) 2006 Novell Inc. All rights reserved.
2 # This program is free software; it may be used, copied, modified
3 # and distributed under the terms of the GNU General Public Licence,
4 # either version 2, or (at your option) any later version.
5
6 import sys, os
7 import urllib2
8 from urlgrabber.grabber import URLGrabber, URLGrabError
9 from urlgrabber.mirror import MirrorGroup
10 from util import packagequery
11 try:
12 from meter import TextMeter
13 except:
14 TextMeter = None
15
16
17 def join_url(self, base_url, rel_url):
18 """to override _join_url of MirrorGroup, because we want to
19 pass full URLs instead of base URL where relative_url is added later...
20 IOW, we make MirrorGroup ignore relative_url"""
21 return base_url
22 |
|