specs/stx-jv.rbspec
changeset 273 70c505f690bf
parent 265 92e3731a1532
child 278 7ed1f5ec59c5
--- a/specs/stx-jv.rbspec	Thu Jul 25 11:00:12 2019 +0100
+++ b/specs/stx-jv.rbspec	Thu Jul 25 11:16:15 2019 +0100
@@ -63,12 +63,12 @@
   import :'stx:baseline'
 
   # FORKED STC and librun
-  package "stx:stc", :repository => :'jv-branch:private', :branch => 'jv',
+  package "stx:stc", :repository => :'jv-branch:public', :branch => 'jv',
     :checkout => (Proc.new do | pkg |
       # Download pre-compiled binary if user has no access to source code
-      if Rake::Stx::Configuration::Repository::find(pkg.repository) then
+      begin
         checkout pkg.repository, 'stx/stc', :branch => pkg.branch, :revision => pkg.revision
-      else
+      rescue Exception
         download_binary_component('stc', BUILD_DIR / 'stx')
       end
     end),
@@ -77,15 +77,15 @@
         update pkg.repository, 'stx/stc', :branch => pkg.branch, :revision => pkg.revision
       elsif not jenkins?
         download_binary_component('stc', BUILD_DIR / 'stx')
-    end
-  end)
+      end
+    end)
 
-  package "stx:librun", :repository => :'jv-branch:private', :branch => 'jv',
+  package "stx:librun", :repository => :'jv-branch:public', :branch => 'jv',
     :checkout => (Proc.new do | pkg |
       # Download pre-compiled binary if user has no access to source code
-      if Rake::Stx::Configuration::Repository::find(pkg.repository) then
+      begin
         checkout pkg.repository, 'stx/librun', :branch => pkg.branch, :revision => pkg.revision
-      else
+      rescue Exception
         download_binary_component('librun', BUILD_DIR / 'stx')
       end
     end),
@@ -94,8 +94,8 @@
         update pkg.repository, 'stx/stc', :branch => pkg.branch, :revision => pkg.revision
       elsif not jenkins?
         download_binary_component('librun', BUILD_DIR / 'stx')
-    end
-  end)
+      end
+    end)
 
   # FORKED libraries
   # ======================================================================