diff options
author | Fabiano FidĂȘncio <fidencio@redhat.com> | 2019-09-24 14:26:43 +0200 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2019-10-02 11:58:34 -0400 |
commit | 9465da4174e778e7607908f18d74fd8aa2cba2fe (patch) | |
tree | 46d67d62f609a405773130e9334a02ad4e841f60 /virtinst/osdict.py | |
parent | 96af1de49fc41007a5e663011f2acbc326d41285 (diff) | |
download | virt-manager-9465da4174e778e7607908f18d74fd8aa2cba2fe.tar.gz |
urlfetcher: Deal with 'file://' in _LocalURLFetcher()
osinfo-db may contain files pointing to local paths, which will have the
format 'file:///usr/share/...'.
With the current code, virt-install would just bail as it doesn't
understand the 'file://' schema. Let's start using urllib (which is
already imported in the very same file) and parse the URL so both
'file:///usr/share/...' and '/usr/share/...' would work.
Reviewed-by: Cole Robinson <crobinso@redhat.com>
Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Diffstat (limited to 'virtinst/osdict.py')
0 files changed, 0 insertions, 0 deletions