]> git.bzium.org/ - embe/man-symlinker.git/commitdiff
Poprawka dla linków bez katalogu.
authorMichał Bartoszkiewicz <mbartoszkiewicz@gmail.com>
Wed, 5 Oct 2011 18:40:22 +0000 (20:40 +0200)
committerMichał Bartoszkiewicz <mbartoszkiewicz@gmail.com>
Wed, 5 Oct 2011 18:40:22 +0000 (20:40 +0200)
man-symlinker

index bb52842d30ad3b9fc430ebf6e834fc1a6e19fc02..529982969a85d193b43c4b0ef6593aa33a7e28d1 100755 (executable)
@@ -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)