Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
virt-manager.18136
3009888a-urlfetcher-Dont-override-fullurl-when-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 3009888a-urlfetcher-Dont-override-fullurl-when-its-explicitly-set.patch of Package virt-manager.18136
Subject: urlfetcher: Don't override fullurl when it's explicitly set From: Fabiano FidĂȘncio fidencio@redhat.com Fri Aug 2 17:01:44 2019 +0200 Date: Tue Aug 6 17:59:05 2019 -0400: Git: 3009888a0ed200a4f472dd32239a7c5157fef391 acquireFile method receives an optional "fullurl" argument. In case it's not passed, its value is set as the same value of the filename. However, when fullurl is passed, it should be used and not overriden by the filename, otherwise fetcher.acquireFile() will just bail. Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Fabiano FidĂȘncio <fidencio@redhat.com> diff --git a/virtinst/install/urlfetcher.py b/virtinst/install/urlfetcher.py index 07f8b5ea..6084bf01 100644 --- a/virtinst/install/urlfetcher.py +++ b/virtinst/install/urlfetcher.py @@ -411,7 +411,8 @@ class DirectFetcher(_URLFetcher): return filename def acquireFile(self, filename, fullurl=None): - fullurl = filename + if not fullurl: + fullurl = filename filename = os.path.basename(filename) fetcher = fetcherForURI(fullurl, self.scratchdir, self.meter, direct=True) return fetcher.acquireFile(filename, fullurl) # pylint: disable=protected-access
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor