We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e46ac1 commit 1f381bcCopy full SHA for 1f381bc
auditwheel/repair.py
@@ -113,11 +113,12 @@ def copylib(src_path, dest_dir):
113
with open(src_path, 'rb') as f:
114
shorthash = hashfile(f)[:8]
115
116
- base, ext = os.path.basename(src_path).split('.', 1)
+ src_name = os.path.basename(src_path)
117
+ base, ext = src_name.split('.', 1)
118
if not base.endswith('-%s' % shorthash):
119
new_soname = '%s-%s.%s' % (base, shorthash, ext)
120
else:
- new_soname = src_path
121
+ new_soname = src_name
122
123
dest_path = os.path.join(dest_dir, new_soname)
124
if os.path.exists(dest_path):
0 commit comments