Skip to content

Commit

Permalink
Not raise an Error if strict=False and --url for download command
Browse files Browse the repository at this point in the history
it introduce a same behavior like without "--url" option

Closes: #211
Approved by: ignatenkobrain
  • Loading branch information
j-mracek authored and DNF Bot committed Apr 24, 2017
1 parent b5e4a95 commit a69f3c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ def run(self):
print(url)
else:
msg = _("Failed to get mirror for package: %s") % pkg.name
raise dnf.exceptions.Error(msg)
if self.base.conf.strict:
raise dnf.exceptions.Error(msg)
logger.warning(msg)
return
else:
locations = self._do_downloads(pkgs) # download rpms
Expand Down

0 comments on commit a69f3c4

Please sign in to comment.