Skip to content
Snippets Groups Projects
Commit f96f6711 authored by Piotr Ożarowski's avatar Piotr Ożarowski
Browse files

do not try to remove .so.foo symlinks twice (if files were listed in an unfortunate order)

parent 4c2a8993
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,8 @@ python-defaults (2.7.2-6) UNRELEASED; urgency=low
private directory
- dist_fallback: add /usr/share/python-support/package/ to paths searched
for Egg metadata; add "wsgiref" and "python" fallbacks
- do not try to remove .so.foo symlinks twice (if files were listed in an
unfortunate order)
-- Scott Kitterman <scott@kitterman.com> Sat, 03 Sep 2011 11:21:35 -0400
......
......@@ -393,6 +393,7 @@ def scan(package, dname=None, clean_dbg_pkg=True):
for lpath in links:
log.info('removing symlink: %s', lpath)
os.remove(lpath)
file_names.remove(split(lpath)[-1])
log.info('renaming %s to %s', dstfpath, fn)
os.rename(dstfpath, fpath)
if dbg_package and clean_dbg_pkg and fext not in ('so', 'h'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment