specs/stx-jv.rbspec
changeset 334 eb15c224410b
parent 330 2744e5db6ffb
child 339 6582cb445441
equal deleted inserted replaced
333:2b754df7e587 334:eb15c224410b
    71       rescue Exception
    71       rescue Exception
    72         download_binary_component('stc', BUILD_DIR / 'stx')
    72         download_binary_component('stc', BUILD_DIR / 'stx')
    73       end
    73       end
    74     end),
    74     end),
    75     :update => (Proc.new do | pkg |
    75     :update => (Proc.new do | pkg |
    76       if (File.exists? BUILD_DIR / 'stx' / 'stc' / '.hg' / 'hgrc') then
    76       if (File.exist? BUILD_DIR / 'stx' / 'stc' / '.hg' / 'hgrc') then
    77         update pkg.repository, 'stx/stc', :branch => pkg.branch, :revision => pkg.revision
    77         update pkg.repository, 'stx/stc', :branch => pkg.branch, :revision => pkg.revision
    78       elsif not jenkins?
    78       elsif not jenkins?
    79         download_binary_component('stc', BUILD_DIR / 'stx')
    79         download_binary_component('stc', BUILD_DIR / 'stx')
    80       end
    80       end
    81     end)
    81     end)
    88       rescue Exception
    88       rescue Exception
    89         download_binary_component('librun', BUILD_DIR / 'stx')
    89         download_binary_component('librun', BUILD_DIR / 'stx')
    90       end
    90       end
    91     end),
    91     end),
    92     :update => (Proc.new do | pkg |
    92     :update => (Proc.new do | pkg |
    93       if (File.exists? BUILD_DIR / 'stx' / 'librun' / '.hg' / 'hgrc') then
    93       if (File.exist? BUILD_DIR / 'stx' / 'librun' / '.hg' / 'hgrc') then
    94         update pkg.repository, 'stx/stc', :branch => pkg.branch, :revision => pkg.revision
    94         update pkg.repository, 'stx/stc', :branch => pkg.branch, :revision => pkg.revision
    95       elsif not jenkins?
    95       elsif not jenkins?
    96         download_binary_component('librun', BUILD_DIR / 'stx')
    96         download_binary_component('librun', BUILD_DIR / 'stx')
    97       end
    97       end
    98     end)
    98     end)