diff options
author | Mike Baker <mbm@openwrt.org> | 2005-03-08 07:12:32 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2005-03-08 07:12:32 +0000 |
commit | 18c2212af22e3682c73675f5728c1469e40e81b7 (patch) | |
tree | c65fc717333913c71acc44aab601ae74073e6ec1 /openwrt/target | |
parent | c10b5713fe2f80b58c59c3031e33b523ebb7cab1 (diff) | |
download | mtk-20170518-18c2212af22e3682c73675f5728c1469e40e81b7.zip mtk-20170518-18c2212af22e3682c73675f5728c1469e40e81b7.tar.gz mtk-20170518-18c2212af22e3682c73675f5728c1469e40e81b7.tar.bz2 |
fix version parsing bug in "ipkg upgrade"
SVN-Revision: 355
Diffstat (limited to 'openwrt/target')
-rwxr-xr-x | openwrt/target/default/target_skeleton/bin/ipkg | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openwrt/target/default/target_skeleton/bin/ipkg b/openwrt/target/default/target_skeleton/bin/ipkg index 1945419..6ceb9d4 100755 --- a/openwrt/target/default/target_skeleton/bin/ipkg +++ b/openwrt/target/default/target_skeleton/bin/ipkg @@ -21,8 +21,8 @@ set -o noglob ipkg_is_upgrade () { local A B a b - A=$(echo $1 | sed "s/[0-9]*/ & /g") - B=$(echo $2 | sed "s/[0-9]*/ & /g") + A=$(echo $1 | sed "s/[0-9]*/ & /g" | sed "s/[^ A-Za-z0-9]//g") + B=$(echo $2 | sed "s/[0-9]*/ & /g" | sed "s/[^ A-Za-z0-9]//g") while [ \! -z "$A" ] && [ \! -z "$B" ]; do { set $A; a=$1; shift; A=$* set $B; b=$1; shift; B=$* |