From: Michał Bartoszkiewicz Date: Wed, 5 Oct 2011 18:40:22 +0000 (+0200) Subject: Poprawka dla linków bez katalogu. X-Git-Tag: v1.0~6 X-Git-Url: https://git.bzium.org/embe/man-symlinker.git/commitdiff_plain/b073943b6e28ed5bf0db728fc81d2f62bc730a52?ds=sidebyside Poprawka dla linków bez katalogu. --- diff --git a/man-symlinker b/man-symlinker index bb52842..5299829 100755 --- a/man-symlinker +++ b/man-symlinker @@ -32,7 +32,7 @@ def process_file(name): return False if link.startswith(dir_name+'/'): link = link[len(dir_name)+1:] - else: + elif '/' in link: link = '../' + link os.unlink(name) os.symlink(link, name)