Skip to content

Commit 1f381bc

Browse files
committed
better fix for #91
1 parent 7e46ac1 commit 1f381bc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

auditwheel/repair.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,12 @@ def copylib(src_path, dest_dir):
113113
with open(src_path, 'rb') as f:
114114
shorthash = hashfile(f)[:8]
115115

116-
base, ext = os.path.basename(src_path).split('.', 1)
116+
src_name = os.path.basename(src_path)
117+
base, ext = src_name.split('.', 1)
117118
if not base.endswith('-%s' % shorthash):
118119
new_soname = '%s-%s.%s' % (base, shorthash, ext)
119120
else:
120-
new_soname = src_path
121+
new_soname = src_name
121122

122123
dest_path = os.path.join(dest_dir, new_soname)
123124
if os.path.exists(dest_path):

0 commit comments

Comments
 (0)