[oe-commits] org.oe.dev util-linux: fixed the checklink function - it was not removing the correct file before reinstating a symbolic link

rwhitby commit openembedded-commits at lists.openembedded.org
Fri Sep 15 21:04:24 UTC 2006


util-linux: fixed the checklink function - it was not removing the correct file before reinstating a symbolic link

Author: rwhitby at nslu2-linux.org
Branch: org.openembedded.dev
Revision: c629f28779bd49372d2aab98722669daa5de86ed
ViewMTN: http://monotone.openembedded.org/revision.psp?id=c629f28779bd49372d2aab98722669daa5de86ed
Files:
1
packages/util-linux/util-linux.inc
Diffs:

#
# mt diff -r36cd2690c9726e0e25f104aeab3227417ba0b75e -rc629f28779bd49372d2aab98722669daa5de86ed
#
# 
# 
# patch "packages/util-linux/util-linux.inc"
#  from [70985b2491b9583f7983b5f8e16ef7d9c5897219]
#    to [32464c6f4a11f6c599b0f29ed6f273a6da0efa40]
# 
============================================================
--- packages/util-linux/util-linux.inc	70985b2491b9583f7983b5f8e16ef7d9c5897219
+++ packages/util-linux/util-linux.inc	32464c6f4a11f6c599b0f29ed6f273a6da0efa40
@@ -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






More information about the Openembedded-commits mailing list