Skip to content

Commit

Permalink
Version 1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kz26 committed Nov 3, 2016
1 parent b4607bc commit c913298
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

1.5.1
-----
* Fix filename clobbering when filename contains parent path string (issue #2)

1.5.0
-----
* Allow both file and directory names to be specified for output_path (PR #1, @mahkitah)
Expand Down
2 changes: 1 addition & 1 deletion docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ available in your system path.
--md5 Add per-file MD5 hashes
--verbose, -v verbose mode

dottorrent/1.5.0 (https://github.com/kz26/dottorrent)
dottorrent/1.5.1 (https://github.com/kz26/dottorrent)



Expand Down
3 changes: 1 addition & 2 deletions dottorrent/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,7 @@ def generate(self, callback=None):
if self.include_md5:
fx['md5sum'] = x[2]['md5sum']
fx['path'] = [y.encode()
for y in x[0].replace(self.path, '', 1)[1:]
.split(os.sep)]
for y in x[0].split(os.sep)[1:]]
data['info']['files'].append(fx)
data['info']['name'] = self.path.split(os.sep)[-1].encode()
data['info']['pieces'] = bytes(self._pieces)
Expand Down
2 changes: 1 addition & 1 deletion dottorrent/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.5.0'
__version__ = '1.5.1'

0 comments on commit c913298

Please sign in to comment.