Author: af
Date: Tue Jan 21 14:21:45 2014
New Revision: 1560030

URL: http://svn.apache.org/r1560030
Log:
123531: Changed name of MSP to contain product name and source and target 
version.

Modified:
    openoffice/trunk/main/solenv/bin/patch_tool.pl

Modified: openoffice/trunk/main/solenv/bin/patch_tool.pl
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/solenv/bin/patch_tool.pl?rev=1560030&r1=1560029&r2=1560030&view=diff
==============================================================================
--- openoffice/trunk/main/solenv/bin/patch_tool.pl (original)
+++ openoffice/trunk/main/solenv/bin/patch_tool.pl Tue Jan 21 14:21:45 2014
@@ -1549,7 +1549,14 @@ sub CreatePcp ($$$$$$%)
 
     # Create filenames.
     my $pcp_filename = File::Spec->catfile($msp_path, "openoffice.pcp");
-    my $msp_filename = File::Spec->catfile($msp_path, "openoffice.msp");
+    # Create basename to include product name and source and target version.
+    # Hard code platform because that is the only platform supported at the 
moment.
+    my $msp_basename = sprintf("%s_%s-%s_Win_x86_patch_%s.msp",
+        $context->{'product-name'},
+        $source_msi->{'version'},
+        $target_msi->{'version'},
+        $context->{'language'});
+    my $msp_filename = File::Spec->catfile($msp_path, $msp_basename);
     
     # Setup msp path and filename.
     unlink($pcp_filename) if -f $pcp_filename;        


Reply via email to