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

do not remove toplevel symlink

parent 8d7fff56
No related branches found
No related tags found
No related merge requests found
......@@ -393,7 +393,8 @@ 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])
if split(lpath)[-1] != fn:
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