List:Commits« Previous MessageNext Message »
From:Reggie Burnett Date:September 4 2012 8:04pm
Subject:bzr commit into wex-installer-build_tools branch (reggie.burnett:8)
View as plain text  
#At file:///C:/work/wex/installer/build_tools/ based on revid:iggy.galarza@stripped

    8 Reggie Burnett	2012-09-04
      added the option for manifestupdater to take a manifest version on the command line

    modified:
      ManifestUpdater/Program.cs
=== modified file 'ManifestUpdater/Program.cs'
=== modified file 'ManifestUpdater/Program.cs'
--- a/ManifestUpdater/Program.cs	2012-09-01 14:54:54 +0000
+++ b/ManifestUpdater/Program.cs	2012-09-04 20:04:43 +0000
@@ -38,6 +38,7 @@
 
     static bool wait = true;
     static bool increment_version = false;
+    static int manifestVersion = -1;
 
     static void Main(string[] args)
     {
@@ -49,6 +50,7 @@
         .Add("update_msi:|um:", "Location of the last update MSI", msi => updateMsi = msi)
         .Add("update_version:|uv:", "Version of the last update MSI", ver => updateVersion = ver)
         .Add("i|increment_version", "Increment the Manifest version in the output.", option => increment_version = option != null)
+        .Add("mv=|manifest_version=", "Manifest version to use verbatim", mv => manifestVersion = Int32.Parse(mv))
         .Add("wait=", "Wait for input after execution.", dowait => wait = (dowait == "y" || dowait == "Y"));
       p.Parse(args);
 
@@ -75,6 +77,10 @@
           manifest.Version += 1;
         }
 
+        // if a manifest version was given as an option, let's use it
+        if (manifestVersion > 0)
+          manifest.Version = manifestVersion;
+
         if (!String.IsNullOrEmpty(updateMsi)) // && !String.IsNullOrEmpty(updateVersion))
         {
           if (File.Exists(updateMsi))


Attachment: [text/bzr-bundle] bzr/reggie.burnett@oracle.com-20120904200443-tvdjlyuve5ye1wld.bundle
Thread
bzr commit into wex-installer-build_tools branch (reggie.burnett:8) Reggie Burnett5 Sep