mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 17:36:13 +01:00
fix OscFileGrabber missing 'opts' attribute issue
given urlgrabber version 3.9.1, MirrorGroup trys to access grabber.opts, but the derived grabber OscFileGrabber hasn't this attribute Signed-off-by: Gui Chen <gui.chen@intel.com>
This commit is contained in:
parent
ae2f9515ef
commit
9ab5a37113
@ -15,7 +15,7 @@ except ImportError:
|
||||
from urllib import quote_plus
|
||||
from urllib2 import HTTPBasicAuthHandler, HTTPCookieProcessor, HTTPPasswordMgrWithDefaultRealm, HTTPError
|
||||
|
||||
from urlgrabber.grabber import URLGrabError
|
||||
from urlgrabber.grabber import URLGrabber, URLGrabError
|
||||
from urlgrabber.mirror import MirrorGroup
|
||||
from .core import makeurl, streamfile
|
||||
from .util import packagequery, cpio
|
||||
@ -35,8 +35,9 @@ def join_url(self, base_url, rel_url):
|
||||
IOW, we make MirrorGroup ignore relative_url"""
|
||||
return base_url
|
||||
|
||||
class OscFileGrabber:
|
||||
class OscFileGrabber(URLGrabber):
|
||||
def __init__(self, progress_obj = None):
|
||||
super(OscFileGrabber, self).__init__()
|
||||
self.progress_obj = progress_obj
|
||||
|
||||
def urlgrab(self, url, filename, text = None, **kwargs):
|
||||
|
Loading…
Reference in New Issue
Block a user