Rename ISO before upload
authorCasper Hornstrup <chorns@users.sourceforge.net>
Thu, 24 Nov 2005 16:33:38 +0000 (16:33 +0000)
committerCasper Hornstrup <chorns@users.sourceforge.net>
Thu, 24 Nov 2005 16:33:38 +0000 (16:33 +0000)
svn path=/trunk/; revision=19532

cis/ReactOS.CustomRevisionAction/Main.cs

index 54c4319..3a30d51 100644 (file)
@@ -185,6 +185,11 @@ namespace ReactOS.CustomRevisionAction
                                                                  string branch,\r
                                                                  int revision)\r
                {\r
                                                                  string branch,\r
                                                                  int revision)\r
                {\r
+                       string distributionFilename = GetDistributionFilename(branch,\r
+                                                                             revision);\r
+                       string destinationFilename = Path.Combine(Path.GetDirectoryName(sourceFilename),\r
+                                                                 distributionFilename);\r
+                       File.Move(sourceFilename, distributionFilename);\r
                        string server;\r
                        string directory;\r
                        SplitRemotePublishPath(publishPath, out server, out directory);\r
                        string server;\r
                        string directory;\r
                        SplitRemotePublishPath(publishPath, out server, out directory);\r
@@ -196,7 +201,7 @@ namespace ReactOS.CustomRevisionAction
                        if (!ftpClient.DirectoryExists(branch))\r
                                ftpClient.MakeDir(branch);\r
                        ftpClient.ChangeDir(branch);\r
                        if (!ftpClient.DirectoryExists(branch))\r
                                ftpClient.MakeDir(branch);\r
                        ftpClient.ChangeDir(branch);\r
-                       ftpClient.Upload(sourceFilename);\r
+                       ftpClient.Upload(destinationFilename);\r
                        ftpClient.Close();\r
                }\r
 \r
                        ftpClient.Close();\r
                }\r
 \r