diff options
author | Ralph Amissah <ralph@amissah.com> | 2013-06-22 01:18:03 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2013-06-22 01:18:03 -0400 |
commit | 6bf6c320b8ad2cb5aa588575565af70b437aa322 (patch) | |
tree | b2c92c4b75de5c9dcbfb6639e56aac38cf545e67 /lib/sisu/v5/remote.rb | |
parent | debian/changelog (4.1.4-1) (diff) | |
parent | v5: general code cleaning (diff) |
Merge tag 'sisu_4.1.5' into debian/sid
SiSU 4.1.5
Diffstat (limited to 'lib/sisu/v5/remote.rb')
-rw-r--r-- | lib/sisu/v5/remote.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/sisu/v5/remote.rb b/lib/sisu/v5/remote.rb index 3a560ae1..19160826 100644 --- a/lib/sisu/v5/remote.rb +++ b/lib/sisu/v5/remote.rb @@ -62,7 +62,6 @@ module SiSU_Remote require_relative 'sysenv' # sysenv.rb include SiSU_Env - pwd=Dir.pwd class Put def initialize(opt) @opt=opt @@ -122,7 +121,7 @@ module SiSU_Remote threads << Thread.new(requested_page) do |url| open(url) do |f| raise "#{url} not found" unless f - base_uri,fnb,instr=re_fnb.match(url)[1..3] if re_fnb + base_uri,fnb=re_fnb.match(url)[1..2] if re_fnb imagedir=base_uri + '/_sisu/image' #check on downloaded_file=File.new("#{fnb}.-sst",'w+') image_download_url=SiSU_Assemble::RemoteImage.new.image(imagedir) @@ -191,7 +190,7 @@ module SiSU_Remote end def dir_stub re_p_stub=/.+?([^\/]+)$/ - pod_stub= re_p_stub.match(path).captures.join if path + re_p_stub.match(path).captures.join if path end def name_source @pod |