changeset 215:e65d8141194b feature_73

Or, we can just retrieve the external repo URL through the project...
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 10 Feb 2011 15:37:47 +0000
parents e0cbb39c0429
children ed8222a04634
files extra/soundsoftware/reposman-soundsoftware.rb
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/extra/soundsoftware/reposman-soundsoftware.rb	Thu Feb 10 14:40:44 2011 +0000
+++ b/extra/soundsoftware/reposman-soundsoftware.rb	Thu Feb 10 15:37:47 2011 +0000
@@ -346,5 +346,14 @@
     log("\trepository #{repos_path} created");
   end
 
+  if project.respond_to?(:repository) and project.repository.is_external?
+    external_url = project.repository.external_url;
+    log("\tproject #{project.identifier} has external repository url #{external_url}");
+    if !external_url.match(/^https?:/)
+      # wot about git, svn/svn+ssh, etc? should we just check for a scheme at all?
+      log("\tthis is not an http(s) url: ignoring");
+    end
+  end
+
 end