if url.startswith("file:/"):
filepath = "/%s" % url.replace("file:", "").lstrip('/')
if not os.path.exists(filepath):
- logger.info('URLGrabber error: cannot find file %s' % url)
- raise TICError("URLGrabber error: can't find file %s" % url)
+ raise TICError(configmgr.message['repo_not_found'] % url)
if url.endswith('.rpm'):
return filepath
else:
- copyfile(filepath, filename)
+ copyfile(filepath, os.path.dirname(filename))
logger.info('copy file ' + filepath)
else:
try: