util-linux: fixed the checklink function - it was not removing the correct file befor...
authorRod Whitby <rod@whitby.id.au>
Fri, 15 Sep 2006 16:56:49 +0000 (16:56 +0000)
committerRod Whitby <rod@whitby.id.au>
Fri, 15 Sep 2006 16:56:49 +0000 (16:56 +0000)
packages/util-linux/util-linux.inc

index 9920721..5d3c6b6 100644 (file)
@@ -51,7 +51,7 @@ checklink() {
                value="$(readlink "$link")"
                if test "$value" = "$targ"
                then
-                       rm "$link"
+                       rm "$link$ext"
                        ln -s "$targ"."${PN}" "$link$ext"
                        return 0
                else