diff --git a/src/exp/com/src/os_linux/pwr_pkg.sh b/src/exp/com/src/os_linux/pwr_pkg.sh index d65a0271455087984abed4b2c4551d473eebc748..1ad6f122d3ce8067105248f5ce675c1d328148a4 100755 --- a/src/exp/com/src/os_linux/pwr_pkg.sh +++ b/src/exp/com/src/os_linux/pwr_pkg.sh @@ -1,6 +1,6 @@ #!/bin/bash # -# Proview $Id: pwr_pkg.sh,v 1.6 2006-07-28 09:57:08 claes Exp $ +# Proview $Id: pwr_pkg.sh,v 1.7 2006-08-22 07:44:25 claes Exp $ # Copyright (C) 2005 SSAB Oxelösund AB. # # This program is free software; you can redistribute it and/or @@ -251,10 +251,10 @@ pkg_dir_func() pkg_dirbrief_func() { - if [ -z $1 ]; then + if [ -z "$1" ]; then allpkg=`ls /home/pwrp/pwrp_pkg_*.tgz` else - if [ $1 == ${1##*/} ]; then + if [ "$1" == "${1##*/}" ]; then # Add path pattern="/home/pwrp/*$1*" elif [ ${1:0:1} == "/" ]; then @@ -267,7 +267,10 @@ pkg_dirbrief_func() for pkg in $allpkg ; do if [ -z ${pkg##*pwrp_pkg_*.tgz} ]; then - basename $pkg + fname=`eval basename $pkg` + ftime=`eval stat $pkg --print=%z | cut -b -19` +# echo $fname $ftime + echo $fname fi done } @@ -347,7 +350,7 @@ while [ -n "$(echo $1 | grep '-')" ]; do -ld ) pkg_dir_func $OPTARG ;; - -l ) pkg_dirbrief_func $OPTARG;; + -l ) pkg_dirbrief_func "$OPTARG";; * ) cat <<EOF usage: pwr_pkg [-i pkg] [-l [pkg]] [-b [pkg]] [-r] diff --git a/wb/changelog.txt b/wb/changelog.txt index 753f910d491437c17b4d874534cf138d95e60a74..662a5d72003b56ae3c411c2b9eea3ec9a19d8a18 100644 --- a/wb/changelog.txt +++ b/wb/changelog.txt @@ -37,4 +37,5 @@ 060629 cs plc Bugfix: CStoIp, StoIp, StoAToIp and CStoAToIp with In-input not connected, did not fetch the supplied value. 060703 cs plc Bugfix in GetSp: short string could cause compile problems. 060711 cs utl Bugfix in rtt crossreference list. Individual attributes were listed in RttObjectList. -060727 cs plc Execute order was not displayed on aarithm objects and other objects with graphmethod 2. \ No newline at end of file +060727 cs plc Execute order was not displayed on aarithm objects and other objects with graphmethod 2. +060822 cs wb Performance improved when opening a node, and displaying the packages in the distributor. \ No newline at end of file