Browse Source

* improved the new awk package updater to support "gnome style"

(where the two first elements of the version are the last folder on
	  the download location) locations - PLEASE report other special cases


git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@20689 10447126-35f2-4685-b0cf-6dd780d3921f
misl/sde-wrapper
Alejandro Mery 19 years ago
parent
commit
75977fd793
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      lib/sde-package/package-update.awk

+ 4
- 0
lib/sde-package/package-update.awk

@ -33,6 +33,10 @@ else if ( $0 ~ /^\[D\]/ && $3 ~ ".*" oldver_pattern ".*" ) {
$3 = filename;
if ( location > "" )
$4 = location;
else if ( $4 ~ ".*/[0-9]+\\.[0-9]+/" ) {
ver = gensub( "([0-9]+\\.[0-9]+).*","\\1","", ver );
sub( "/[0-9]+\\.[0-9]+/", "/" ver "/", $4 );
}
else
for (i=4;i<=NF;i++)
gsub( oldver_pattern, ver, $i );

Loading…
Cancel
Save