Lines Matching full:ud
29 def supports(self, ud, d): argument
33 return ud.type in ['crate']
38 def urldata_init(self, ud, d): argument
43 if ud.type == 'crate':
44 self._crate_urldata_init(ud, d)
46 super(Crate, self).urldata_init(ud, d)
48 def _crate_urldata_init(self, ud, d): argument
55 parts = ud.url.split('/')
57 raise bb.fetch2.ParameterError("Invalid URL: Must be crate://HOST/NAME/VERSION", ud.url)
70 ud.url = "https://%s/%s/%s/download" % (host, name, version)
71 ud.parm['downloadfilename'] = "%s-%s.crate" % (name, version)
72 ud.parm['name'] = name
74 logger.debug("Fetching %s to %s" % (ud.url, ud.parm['downloadfilename']))
76 def unpack(self, ud, rootdir, d): argument
80 if ud.type == 'crate':
81 return self._crate_unpack(ud, rootdir, d)
83 super(Crate, self).unpack(ud, rootdir, d)
85 def _crate_unpack(self, ud, rootdir, d): argument
89 thefile = ud.localpath
99 if pn == ud.parm.get('name'):
127 raise UnpackError("Unpack command %s failed with return value %s" % (cmd, ret), ud.url)