Guest User

Untitled

a guest
Jan 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. diff --git a/mic/utils/bootstrap.py b/mic/utils/bootstrap.py
  2. index e4f2f59..fdcd0da 100644
  3. --- a/mic/utils/bootstrap.py
  4. +++ b/mic/utils/bootstrap.py
  5. @@ -409,7 +409,7 @@ def build_bootstrap(repoList, mainrepo, cachedir, bootstrapdir, bootstrap_arch =
  6.  
  7. """ HACK: This hack is here to enable backward compatibility until the
  8. .ks files have been updated to support the @ARCH@ option for the URLs."""
  9. - if bootstrap_target_arch and bootstrap_target_arch.startswith("arm") and repourl.find(bootstrap_target_arch) != -1:
  10. + if bootstrap_target_arch and bootstrap_target_arch.startswith("arm"):
  11. pattern = re.compile('/arm.*?/')
  12. repourl = pattern.sub("/ia32/", repourl)
  13. get_repo_metadata(repourl, cachedir, reponame, proxies, bootstrap_arch)
Add Comment
Please, Sign In to add comment