Author: mvidner Date: Wed Apr 23 13:29:48 2008 New Revision: 46981 URL: http://svn.opensuse.org/viewcvs/yast?rev=46981&view=rev Log: Make the yast2 script work even with trailing slashes in $PATH (bnc#382216). thx bili Modified: trunk/yast2/package/yast2.changes trunk/yast2/scripts/yast2 Modified: trunk/yast2/package/yast2.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/package/yast2.changes?rev=4... ============================================================================== --- trunk/yast2/package/yast2.changes (original) +++ trunk/yast2/package/yast2.changes Wed Apr 23 13:29:48 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Apr 23 13:27:18 CEST 2008 - mvidner@suse.cz + +- Make the yast2 script work even with trailing slashes in $PATH + (bnc#382216). + +------------------------------------------------------------------- Wed Apr 23 11:50:23 CEST 2008 - lslezak@suse.cz - PackageSystem.ycp - do not initialize the package callbacks, Modified: trunk/yast2/scripts/yast2 URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/scripts/yast2?rev=46981&... ============================================================================== --- trunk/yast2/scripts/yast2 (original) +++ trunk/yast2/scripts/yast2 Wed Apr 23 13:29:48 2008 @@ -17,7 +17,7 @@ # allow for a different prefix mydir=${0%/[YyZz]a[Ss][Tt]*} -if [ -z "$mydir" -o "$mydir" = "/sbin" ]; then +if [[ -z "$mydir" || "$mydir" =~ /sbin/* ]]; then YAST_PREFIX=/usr else YAST_PREFIX=${mydir%/sbin} -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org