releasing/cbrtools/perl/Symbian/CBR/ApplyDelta.pm
author jascui
Wed, 17 Nov 2010 13:27:16 +0800
changeset 686 3e502c8c584c
parent 602 3145852acc89
permissions -rw-r--r--
Update release information and product version.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
602
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     1
# Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     2
# All rights reserved.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     3
# This component and the accompanying materials are made available
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     4
# under the terms of the License "Eclipse Public License v1.0"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     5
# which accompanies this distribution, and is available
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     6
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     7
# 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     8
# Initial Contributors:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
     9
# Nokia Corporation - initial contribution.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    10
# 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    11
# Contributors:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    12
# 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    13
# Description:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    14
# 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    15
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    16
# Description:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    17
# Symbian::CBR::ApplyDelta.pm
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    18
#
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    19
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    20
package Symbian::CBR::ApplyDelta;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    21
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    22
use strict;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    23
use File::Basename;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    24
use FindBin qw($Bin);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    25
use File::Spec;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    26
use Symbian::CBR::Component::Manifest;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    27
use Symbian::CBR::DeltaRelease::Manifest qw(META_FILES DELTA_MANIFEST_FILE);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    28
use ExportData;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    29
use EnvDb;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    30
use Utils;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    31
use File::Path;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    32
use File::Temp;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    33
use XML::Simple;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    34
use File::Copy;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    35
use Carp;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    36
use Cwd;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    37
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    38
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    39
sub new {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    40
  my $pkg = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    41
  my $iniData = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    42
  my $verbose = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    43
  my $self;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    44
  $self->{iniData} = $iniData;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    45
  $self->{verbose} = $verbose;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    46
  bless $self, $pkg;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    47
  return $self;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    48
}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    49
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    50
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    51
sub ReconstructEnv {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    52
  my $self = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    53
  my $zipFile = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    54
  my $overwrite = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    55
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    56
  $self->{deltaManifest} = Symbian::CBR::DeltaRelease::Manifest->new($self->{verbose});
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    57
  Utils::InitialiseTempDir($self->{iniData});
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    58
  $self->{deltaDir} = Utils::TempDir();
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    59
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    60
  my $deltaManifestFile = File::Spec->catfile($self->{deltaDir}, DELTA_MANIFEST_FILE );
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    61
  print "Extracting delta release package.\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    62
  eval {Utils::Unzip($zipFile,$self->{deltaDir},0,1);};
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    63
  croak "Error: Couldn't Extract File $zipFile $@\n" if($@);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    64
  #Read delta manifest file.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    65
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    66
  $self->{deltaManifest}->LoadManifest($deltaManifestFile);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    67
  my $referenceBaseline = $self->{deltaManifest}->GetReferenceBaselineComp();
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    68
  my $referenceVersion = $self->{deltaManifest}->GetReferenceBaselineVer();
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    69
  my $destination =  $self->{iniData}->PathData->LocalArchivePathForExistingComponent($referenceBaseline, $referenceVersion);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    70
  croak "Error: Reference baseline $referenceBaseline $referenceVersion does not exist.\n" unless (defined $destination);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    71
  my $index = index($destination, $referenceBaseline);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    72
  $destination = substr($destination, 0, ($index));
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    73
  foreach  my $comp (sort keys %{$self->{deltaManifest}->ListAllComponents()}) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    74
    my $compStatus = $self->{deltaManifest}->GetCompStatus($comp);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    75
    my $hasError;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    76
    if ($compStatus eq "modified") {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    77
      $hasError = $self->ReconstructComp($comp, $destination, $overwrite); #Reconstruct modified component.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    78
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    79
    elsif ($compStatus eq "added") {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    80
      $hasError = $self->CopyCompToBaseline($comp, $destination, $overwrite); #Directly copy component to baseline.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    81
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    82
    
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    83
    if ($hasError) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    84
      my $version = $self->{deltaManifest}->GetCompNominatedVer($comp);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    85
      print "Error: Can't reconstruct component $comp, version $version\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    86
      next;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    87
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    88
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    89
  rmtree($self->{deltaDir}) or print "Warning: Couldn't delete temp directory ".$self->{deltaDir}.".\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    90
}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    91
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    92
sub CopyCompToBaseline {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    93
  my $self = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    94
  my $comp = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    95
  my $destination = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    96
  my $overwrite = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    97
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    98
  print "$comp is newly added to the baseline.\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
    99
  my $tempNewCompPath = File::Spec->catfile($self->{deltaDir},"new", $comp);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   100
  my $nomVersion = $self->{deltaManifest}->GetCompNominatedVer($comp);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   101
  my $archiveCompPath = File::Spec->catdir($destination, $comp, $nomVersion);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   102
  if (-d $archiveCompPath and !$overwrite) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   103
    print "Error: $comp already exists. Please use -o option to overwrite.\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   104
    return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   105
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   106
  mkpath($archiveCompPath) unless (-d $archiveCompPath);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   107
  foreach my $thisFile (@{Utils::ReadDir($tempNewCompPath)}) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   108
    my $thisTempFile = File::Spec->catfile($tempNewCompPath, $thisFile);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   109
    my $thisArchivepFile = File::Spec->catfile($archiveCompPath, $thisFile);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   110
    if (-e $thisArchivepFile) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   111
      print "Overwriting $thisFile.\n " if ($self->{verbose});	
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   112
      unless (unlink($thisArchivepFile)) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   113
        print "Error: Couldn't delete $thisArchivepFile : $!\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   114
	return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   115
      }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   116
    }	  
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   117
    unless (copy($thisTempFile, $thisArchivepFile)) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   118
      print "Error: Couldn't copy file from $thisTempFile to $thisArchivepFile.\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   119
      return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   120
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   121
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   122
  return 0;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   123
}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   124
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   125
sub ReconstructComp {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   126
  my $self = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   127
  my $comp = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   128
  my $destination = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   129
  my $overwrite = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   130
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   131
  my $refVersion =  $self->{deltaManifest}->GetCompReferenceVer($comp);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   132
  my $nomVersion = $self->{deltaManifest}->GetCompNominatedVer($comp);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   133
  print "Reconstructing $comp component.\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   134
  my $refCompVer = File::Spec->catdir($destination, $comp, $refVersion);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   135
  my $nomCompVer = File::Spec->catdir($destination, $comp, $nomVersion);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   136
  if (-d $nomCompVer and !$overwrite) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   137
    print "Error: $comp of $nomVersion version already exists. Please use -o option to overwrite.\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   138
    return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   139
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   140
  if (-d $nomCompVer) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   141
    print "Overwriting $comp\n" if($self->{verbose});
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   142
    my $origDir = cwd();
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   143
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   144
    chdir(dirname($nomCompVer)); #If you try to rmtree a UNC path the cwd must also be a UNC path
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   145
    unless (rmtree($nomCompVer)) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   146
      print "Error: Couldn't delete $nomCompVer directory\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   147
      return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   148
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   149
    chdir($origDir);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   150
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   151
  mkpath($nomCompVer);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   152
  #Make copy of reference version.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   153
  foreach my $thisFile (@{Utils::ReadDir($refCompVer)}) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   154
    my $thisRefFile = File::Spec->catfile($refCompVer, $thisFile);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   155
    my $thisNomFile = File::Spec->catfile($nomCompVer, $thisFile);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   156
    unless (copy($thisRefFile, $thisNomFile)) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   157
      print "Error: Couldn't copy file from $thisRefFile to $thisNomFile. $!\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   158
      return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   159
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   160
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   161
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   162
  #Reconstruct modified zip files, copy newly added zip files and delete deleted zip files.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   163
  foreach  my $zipfile (keys  %{$self->{deltaManifest}->GetZipFilesForComp($comp)}) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   164
    my $zipStatus = $self->{deltaManifest}->GetZipStatus($comp, $zipfile);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   165
    my $nomZipFile = File::Spec->catfile($nomCompVer, $zipfile);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   166
    if ($zipStatus eq "modified") {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   167
      my $hasError = $self->ReconstructZipFile($comp, $zipfile, $nomCompVer); #If zip file is modified, then reconstruct it.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   168
      return $hasError if($hasError);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   169
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   170
    
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   171
    elsif ($zipStatus eq "added") {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   172
      my $tempZipFile = File::Spec->catfile(Utils::TempDir(),"modified","addedZips",$comp,$zipfile);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   173
      if (-e $nomZipFile) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   174
        print "Overwriting $nomZipFile.\n " if ($self->{verbose});
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   175
        unless (unlink($nomZipFile)) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   176
          print "Error: Couldn't delete $nomZipFile : $!\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   177
	  return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   178
	}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   179
      }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   180
      unless (copy($tempZipFile, $nomZipFile)) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   181
        print "Error: Couldn't copy $tempZipFile to $nomZipFile. $!\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   182
	return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   183
      }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   184
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   185
    elsif ($zipStatus eq "deleted") {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   186
      if (-e $nomZipFile) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   187
        unless (unlink($nomZipFile)) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   188
          print "Error: Couldn't delete $nomZipFile : $!\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   189
	  return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   190
        }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   191
      }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   192
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   193
    elsif ($zipStatus eq "identical") {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   194
      print "$zipfile is not modified.\n" if($self->{verbose} > 1);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   195
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   196
    else {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   197
      print "Error: Unknown zip file status \"$zipStatus\" for $zipfile of $comp component in delta manifest file.\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   198
      return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   199
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   200
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   201
  #Reconstruct reldata, manifest.xml and exports.txt files.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   202
  my $deltaFilePath = File::Spec->catdir($self->{deltaDir}, META_FILES);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   203
  foreach my $metafile (keys %{$self->{deltaManifest}->GetMetaFiles($comp)}) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   204
    my $nomFile = File::Spec->catfile($nomCompVer, $metafile);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   205
    my $deltaFile = $comp."_".$metafile;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   206
    $deltaFile = File::Spec->catfile($deltaFilePath, $deltaFile);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   207
    #retry 10 times
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   208
    my $retries = 10;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   209
    while ($retries > 0) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   210
      if (-e $nomFile) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   211
        unlink($nomFile) or print "Warning: delete file $nomFile failed. $?, $!\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   212
      }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   213
      print "Copying $metafile.\n" if( -e $metafile and $self->{verbose});
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   214
      if (copy($deltaFile, $nomFile) == 0) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   215
        #copy failed, warning and try again
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   216
        print "Warning: Couldn't copy file from $deltaFile to $nomFile. $!\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   217
        $retries--;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   218
      }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   219
      else {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   220
        #copy successfully, jump out of the loop
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   221
        last;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   222
      }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   223
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   224
    if ($retries<=0) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   225
      print "Error: Couldn't copy file $deltaFile to $nomFile. $!\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   226
      return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   227
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   228
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   229
  
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   230
  return 0;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   231
}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   232
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   233
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   234
sub ReconstructZipFile {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   235
  my $self = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   236
  my $comp = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   237
  my $zipfile = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   238
  my $releaseFolder = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   239
  
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   240
  my $nomZipFile = File::Spec->catfile($releaseFolder, $zipfile);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   241
  my $tempCompPath = mkdtemp($self->{iniData}->TempDir().'\_XXXX');
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   242
  mkpath ($tempCompPath) unless(-d $tempCompPath);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   243
  my $tempCompZips = File::Spec->catdir($self->{deltaDir}, "TempZips");
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   244
  mkpath($tempCompZips) unless(-d $tempCompZips);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   245
  my $tempCompZipFile = File::Spec->catdir($tempCompZips, $zipfile);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   246
  #Move zip file to temporary location.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   247
  unless (move($nomZipFile, $tempCompZipFile)) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   248
    print "Error: Couldn't move $zipfile to temp directory. $!\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   249
    return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   250
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   251
  print "Extracting $zipfile file.\n" if($self->{verbose} > 1);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   252
  Utils::Unzip($tempCompZipFile,$tempCompPath,0,1);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   253
  unless (unlink($tempCompZipFile)) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   254
    print "Error: Couldn't delete $tempCompZipFile : $!\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   255
    return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   256
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   257
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   258
  foreach my $file (keys %{$self->{deltaManifest}->GetFilesForZip($comp, $zipfile)}) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   259
    my $deltaFilePath = File::Spec->catfile($self->{deltaDir},"modified",$file);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   260
    my $tempCompFilePath = File::Spec->catfile($tempCompPath,$file);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   261
    my $fileStatus = $self->{deltaManifest}->GetFileStatus($comp, $zipfile, $file);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   262
    my $type = $self->{deltaManifest}->GetFileType($comp, $zipfile, $file );
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   263
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   264
    if ($fileStatus eq "added") {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   265
      print "Copying $file\n" if($self->{verbose});
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   266
      my $tempFilePath = dirname ($tempCompFilePath);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   267
      unless (-e $tempFilePath) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   268
        unless (mkpath ($tempFilePath)) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   269
          print "Error: Unable to create $tempFilePath path.\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   270
	  return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   271
	}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   272
      }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   273
      unless (-e $deltaFilePath) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   274
        print "Error: $deltaFilePath file doesn't exists.\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   275
	return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   276
      }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   277
      unless (copy($deltaFilePath, $tempCompFilePath)) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   278
        print "Error: Couldn't copy file from $deltaFilePath to $tempCompFilePath\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   279
	return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   280
      }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   281
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   282
    elsif ($fileStatus eq "modified") {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   283
      if ($type eq "file") {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   284
        if (-e $tempCompFilePath) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   285
          unless (unlink($tempCompFilePath)) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   286
            print "Error: Couldn't delete $tempCompFilePath : $!\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   287
	    return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   288
	  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   289
        }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   290
        my $tempFilePath = dirname ($tempCompFilePath);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   291
        unless (-e $tempFilePath) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   292
          mkpath ($tempFilePath) or croak "Error: Unable to create $tempFilePath path.\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   293
        }		  
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   294
        unless (-e $deltaFilePath) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   295
          print "Error: $deltaFilePath file doesn't exist.\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   296
	  return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   297
	}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   298
        unless (copy ($deltaFilePath, $tempCompFilePath)) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   299
          print "Error: Couldn't copy file from $deltaFilePath to $tempCompFilePath\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   300
	  return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   301
	}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   302
      }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   303
      elsif ($type eq "delta") {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   304
        my $deltaFile = $deltaFilePath.".delta";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   305
        $self->ReconstructFile($tempCompFilePath, $deltaFile, $tempCompFilePath);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   306
      }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   307
      else {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   308
        print "Error: Unknown file type \"$type\" in delta manifest file.\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   309
	return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   310
      }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   311
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   312
    elsif ($fileStatus eq "deleted") {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   313
      if (unlink($tempCompFilePath) == 0) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   314
        if (-e $tempCompFilePath) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   315
          print "Error: Couldn't delete $tempCompFilePath : $!\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   316
	  return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   317
        }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   318
        else {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   319
          print "Warning: Expecting to delete $tempCompFilePath, but it does not exist.\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   320
        }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   321
      }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   322
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   323
    else {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   324
      print "Error: Unknown file status \"$fileStatus\" for \"$file\" file.\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   325
      return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   326
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   327
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   328
  #Pack all files of a zipfile to form a category.zip file.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   329
  my @allFiles;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   330
  my @filesToBeZipped;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   331
  Utils::ListAllFiles($tempCompPath, \@allFiles);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   332
  foreach  my $thisFile (@allFiles) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   333
    my $file = substr($thisFile, (length($tempCompPath)+1));
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   334
    push @filesToBeZipped, $file;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   335
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   336
  Utils::ZipList( $nomZipFile, \@filesToBeZipped, $self->{verbose}, undef,$tempCompPath);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   337
  unless (rmtree ($tempCompPath)) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   338
    print "Error: Couldn't delete $tempCompPath directory.\n"; 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   339
    return 1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   340
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   341
  
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   342
  return 0;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   343
}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   344
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   345
sub ReconstructFile {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   346
  my $self = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   347
  my $referenceFile = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   348
  my $deltaFilePath = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   349
  my $destination = shift;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   350
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   351
  my $destinationDir = dirname($destination);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   352
  mkpath($destinationDir) unless(-d $destinationDir);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   353
  print "Reconstructing ".basename($referenceFile)." file.\n" if($self->{verbose} > 1);
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   354
  my $status = system "zdu \"$referenceFile\" \"$deltaFilePath\"  \"$destination\"" ;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   355
  if( $status != 0 ) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   356
    $status = system "zdu" ;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   357
    $! = $? >> 8;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   358
    if( $status != 0 ) {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   359
      print "Error: The zdelta tool is not installed. Please install zdelta.\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   360
      croak;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   361
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   362
    else {
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   363
      print "Error: The zdelta tool is not installed properly. Please install zdelta once again.\n";
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   364
      croak;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   365
    }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   366
  }
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   367
}
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   368
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   369
1;
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   370
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   371
__END__
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   372
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   373
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   374
=head1 NAME
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   375
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   376
Symbian::CBR::ApplyDelta.pm - Reconstructs the nominated baseline using deltas and reference version of baseline.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   377
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   378
=head2 new
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   379
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   380
Expects to be passed an C<IniData> reference and verbosity level. Creates an ApplyDelta object. 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   381
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   382
=head2 ReconstructEnv
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   383
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   384
Expects to be passed a delta zip file path, a destination archive where the environment is to be created, and an overwrite flag specifying whether existing components should be overwritten or not. It makes use of the delta zip file and a reference baseline (specified by the delta manifest file) and reconstructs the originally nominated baseline.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   385
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   386
=head2 ReconstructComp
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   387
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   388
Expects to be passed a component name, a destination and an overwrite flag specifying whether existing component should be overwritten or not. It makes use of the delta for a component and a reference version of a component (specified by the delta manifest file) and reconstructs the originally nominated version of a component.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   389
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   390
=head2 ReconstructFile
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   391
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   392
Expects to be passed a reference file, path to a delta file and a destination path. Makes use of the zdelta third party tool to reconstruct the originally nominated version of the file from the inputs.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   393
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   394
=head1 KNOWN BUGS
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   395
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   396
None.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   397
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   398
=head1 COPYRIGHT
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   399
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   400
 Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   401
 All rights reserved.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   402
 This component and the accompanying materials are made available
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   403
 under the terms of the License "Eclipse Public License v1.0"
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   404
 which accompanies this distribution, and is available
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   405
 at the URL "http://www.eclipse.org/legal/epl-v10.html".
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   406
 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   407
 Initial Contributors:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   408
 Nokia Corporation - initial contribution.
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   409
 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   410
 Contributors:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   411
 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   412
 Description:
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   413
 
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   414
3145852acc89 add releasing to new structure
jjkang
parents:
diff changeset
   415
=cut