aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/options.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2012-10-01 16:09:17 -0400
committerRalph Amissah <ralph@amissah.com>2012-10-01 16:09:17 -0400
commitd98f27086318452017b80952a297f2ccb05bc4b1 (patch)
treedf39d4ff3f86ff4648efc66683b87c67e8e1fb1a /lib/sisu/v3/options.rb
parentv3: cosmetic code, remove javascript holders js_ (not used) (diff)
v3: some fixes, cleaning, removing
Diffstat (limited to 'lib/sisu/v3/options.rb')
-rw-r--r--lib/sisu/v3/options.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sisu/v3/options.rb b/lib/sisu/v3/options.rb
index ba2864fd..39c392a9 100644
--- a/lib/sisu/v3/options.rb
+++ b/lib/sisu/v3/options.rb
@@ -57,7 +57,7 @@
=end
module SiSU_Commandline
- require "pathname"
+ require 'pathname'
require_relative 'sysenv' # sysenv.rb
@@base_path=nil
class Options
@@ -216,7 +216,7 @@ module SiSU_Commandline
if x =~/^(?:https?|file):\/\/\S+/ #\
end
pwd=Dir.pwd
- fn_pod=x.gsub(/.+?([^\/]+)\.txz$/,'\1')
+ fn_pod=x.gsub(/([^\/]+)\.txz$/,'\1')
fullname=@env.processing_path.processing + '/sisupod/' + fn_pod
pt=Pathname.new(fullname)
FileUtils::mkdir_p(pt.to_s)
@@ -224,7 +224,7 @@ module SiSU_Commandline
options=s.gsub(/(\s+--?\S+)+.+/,'\1')
system("
chdir #{fullname}
- tar xaf #{x}
+ tar xaf #{pwd}/#{x}
chdir #{pwd}
")
Dir.chdir(pt.realpath.to_s + '/sisupod/doc')