Changeset 355


Ignore:
Timestamp:
2005-03-08T08:12:32+01:00 (13 years ago)
Author:
mbm
Message:

fix version parsing bug in "ipkg upgrade"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/target/default/target_skeleton/bin/ipkg

    r311 r355  
    2222ipkg_is_upgrade () { 
    2323  local A B a b 
    24   A=$(echo $1 | sed "s/[0-9]*/ & /g") 
    25   B=$(echo $2 | sed "s/[0-9]*/ & /g") 
     24  A=$(echo $1 | sed "s/[0-9]*/ & /g" | sed "s/[^ A-Za-z0-9]//g") 
     25  B=$(echo $2 | sed "s/[0-9]*/ & /g" | sed "s/[^ A-Za-z0-9]//g") 
    2626  while [ \! -z "$A" ] && [ \! -z "$B" ]; do { 
    2727    set $A; a=$1; shift; A=$* 
Note: See TracChangeset for help on using the changeset viewer.