diff options
author | Michał Górny <mgorny@gentoo.org> | 2020-03-29 12:26:13 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2020-03-29 12:29:39 +0200 |
commit | 7eea5f1395ae28326cbcc92c20adf507e0fc62a8 (patch) | |
tree | 7aec758cbceb728d2f7eb8ed52b3e55f5323d60f /dev-python/urlgrabber/files | |
parent | dev-python/uritemplate: Remove redundant versions (diff) | |
download | gentoo-7eea5f1395ae28326cbcc92c20adf507e0fc62a8.tar.gz gentoo-7eea5f1395ae28326cbcc92c20adf507e0fc62a8.tar.bz2 gentoo-7eea5f1395ae28326cbcc92c20adf507e0fc62a8.zip |
dev-python/urlgrabber: Remove redundant versions
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/urlgrabber/files')
-rw-r--r-- | dev-python/urlgrabber/files/urlgrabber-3.9.1.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/dev-python/urlgrabber/files/urlgrabber-3.9.1.patch b/dev-python/urlgrabber/files/urlgrabber-3.9.1.patch deleted file mode 100644 index bdcc9cb1d465..000000000000 --- a/dev-python/urlgrabber/files/urlgrabber-3.9.1.patch +++ /dev/null @@ -1,26 +0,0 @@ -http://yum.baseurl.org/gitweb?p=urlgrabber.git;a=commitdiff;h=f4e57ece7ded0f7ad83c8a40fe8423fab7812264 -http://yum.baseurl.org/gitweb?p=urlgrabber.git;a=commitdiff;h=89cc380a2a251a1d2d8b91cf6df170fa546597aa - -diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py -index f98f423..7b7f979 100644 ---- a/urlgrabber/grabber.py -+++ b/urlgrabber/grabber.py -@@ -1532,11 +1589,14 @@ - def _over_max_size(self, cur, max_size=None): - - if not max_size: -- max_size = self.size -- if self.opts.size: # if we set an opts size use that, no matter what -- max_size = self.opts.size -+ if not self.opts.size: -+ max_size = self.size -+ else: -+ max_size = self.opts.size -+ - if not max_size: return False # if we have None for all of the Max then this is dumb -- if cur > max_size + max_size*.10: -+ -+ if cur > int(float(max_size) * 1.10): - - msg = _("Downloaded more than max size for %s: %s > %s") \ - % (self.url, cur, max_size) |