Skip to content

Commit

Permalink
total_length must be an int
Browse files Browse the repository at this point in the history
  • Loading branch information
karasu committed May 8, 2015
1 parent 8327d7c commit ab2215e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[2015-05-08 12:57:24 +0200] Fix deprecation warning karasu {8327d7c}
[2015-05-08 09:55:16 +0200] Show GTK wrong version error message in GUI (checked on an ubuntu s.. karasu {c20c941}
[2015-05-07 18:28:27 +0200] Some changes in download_requests (that is still not used ;) ) karasu {5943fb2}
[2015-05-04 22:31:25 +0200] Update update.info karasu {d5f552b}
Expand Down
2 changes: 1 addition & 1 deletion cnchi/download/download_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def start(self, downloads):
completed_length = 0
start = time.clock()
r = requests.get(url, stream=True)
total_length = r.headers.get('content-length')
total_length = int(r.headers.get('content-length'))
if r.status_code == requests.codes.ok:
with open(dst_path, 'wb') as xz_file:
for data in r.iter_content(1024):
Expand Down
2 changes: 1 addition & 1 deletion cnchi/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

""" Set some Cnchi global constants """

CNCHI_VERSION = "0.8.117"
CNCHI_VERSION = "0.8.118"
CNCHI_WEBSITE = "http://www.antergos.com"

if __name__ == '__main__':
Expand Down

0 comments on commit ab2215e

Please sign in to comment.