| |
@@ -19,6 +19,7 @@
|
| |
"""
|
| |
import os.path
|
| |
from six.moves.urllib.request import urlretrieve
|
| |
+ from six.moves.urllib.parse import unquote
|
| |
|
| |
from bs4 import BeautifulSoup
|
| |
|
| |
@@ -64,13 +65,13 @@
|
| |
urls = self._find_urls_by_ending(".src.rpm")
|
| |
if not urls:
|
| |
raise self.BugError("Cannot find source rpm URL")
|
| |
- self.srpm_url = urls[0]
|
| |
+ self.srpm_url = unquote(urls[0])
|
| |
|
| |
def find_spec_url(self):
|
| |
urls = self._find_urls_by_ending(".spec")
|
| |
if not urls:
|
| |
raise self.BugError("Cannot find spec file URL")
|
| |
- self.spec_url = urls[0]
|
| |
+ self.spec_url = unquote(urls[0])
|
| |
|
| |
def get_location(self):
|
| |
return self.bug_url
|
| |
Previously the spec url was not being unescaped. This led to the folders not being unescaped too, in which case python starts seeing
%
as format characters causing the following error:This commit provides the fix for this situation replacing unescape code with their single-character equivalent.