Ticket #30833: perl5-1.0.tcl.diff

File perl5-1.0.tcl.diff, 743 bytes (added by fracai, 13 years ago)

Modification to 'perl5_convert_version'.

  • dports/_resources/port1.0/group/perl5-1.0.tcl

    diff --git a/dports/_resources/port1.0/group/perl5-1.0.tcl b/dports/_resources/port1.0/group/perl5-1.0.tcl
    index dcb6964..e4152a7 100644
    a b proc perl5_convert_version {vers} { 
    202202    set index 0
    203203    while {$index < [string length $fractional] || $index < 6} {
    204204        set sub [string range $fractional $index [expr $index + 2]]
    205         if {[string length $sub] < 3} {
    206             append sub [string repeat "0" [expr 3 - [string length $sub]]]
    207         }
    208         append ret ".[scan $sub %u]"
     205        append ret "." [string repeat "0" [expr 3 - [string length $sub]]] $sub
    209206        incr index 3
    210207    }
    211208    return $ret