From: Reggie Burnett Date: September 17 2012 10:40pm Subject: bzr commit into ABSv2 branch (reggie.burnett:39) List-Archive: http://lists.mysql.com/commits/144790 Message-Id: <201209172240.q8HMejIh022719@acsmt356.oracle.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1631530306==" --===============1631530306== MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline #At file:///C:/work/wex/absv2/ based on revid:reggie.burnett@stripped 39 Reggie Burnett 2012-09-17 small correction in how we validate a product file modified: AbsUtility/ProductFile.cs === modified file 'AbsUtility/ProductFile.cs' === modified file 'AbsUtility/ProductFile.cs' --- a/AbsUtility/ProductFile.cs 2012-09-17 22:01:12 +0000 +++ b/AbsUtility/ProductFile.cs 2012-09-17 22:40:37 +0000 @@ -52,12 +52,16 @@ throw new Exception("Every product file requires a regular expression"); if (Generated && String.IsNullOrEmpty(GenerationScript)) throw new Exception("Generated files require a supplied generation script"); + File = null; string[] files = Utility.MatchFiles(Product.IncomingFolder, RegularExpression); - if (files.Length != 1 && checkGenerated) + if (files != null && files.Length == 1) + { + File = files[0]; + if (Utility.FileIsLocked(File)) + throw new Exception(String.Format("File matching expression {0} is still locked", RegularExpression)); + } + else if (checkGenerated) throw new Exception("Regular expression did not match exactly 1 file"); - File = files[0]; - if (Utility.FileIsLocked(File)) - throw new Exception(String.Format("File matching expression {0} is still locked", RegularExpression)); } public bool Build(Version newVersion) --===============1631530306== MIME-Version: 1.0 Content-Type: text/bzr-bundle; charset="us-ascii"; name="bzr/reggie.burnett@stripped" Content-Transfer-Encoding: 7bit Content-Disposition: inline # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: reggie.burnett@stripped\ # pkzu85xs2rrqtiau # target_branch: file:///C:/work/wex/absv2/ # testament_sha1: 3fa52a947f619d1fa9ec11f177d8a7b48be9542c # timestamp: 2012-09-17 17:40:37 -0500 # base_revision_id: reggie.burnett@stripped\ # uxb76n4e12p735ug # # Begin bundle Iy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