Skip to content

Commit

Permalink
fix OscFileGrabber missing 'opts' attribute issue
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gui Chen authored and adrianschroeter committed May 14, 2013
1 parent ae2f951 commit 9ab5a37
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions osc/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
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
Expand All @@ -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):
Expand Down

0 comments on commit 9ab5a37

Please sign in to comment.