aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2007-01-09 00:46:34 +0000
committerAvatar Richard Brown <rbrown@exherbo.org> 2007-01-09 00:46:34 +0000
commit971f38bd190210ecfd7d9d4950eef895e8d19947 (patch)
tree2b567922a901dacc5affce2704fd6127af6e189c
parent0818bbe831a97e861e941d786141435f0873ee6c (diff)
downloadpaludis-971f38bd190210ecfd7d9d4950eef895e8d19947.tar.gz
paludis-971f38bd190210ecfd7d9d4950eef895e8d19947.tar.xz
Revert r2111 on qualudis.rb
-rw-r--r--ruby/demos/qualudis.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/ruby/demos/qualudis.rb b/ruby/demos/qualudis.rb
index f3a0251..931cf04 100644
--- a/ruby/demos/qualudis.rb
+++ b/ruby/demos/qualudis.rb
@@ -3,8 +3,6 @@
#
require 'Paludis'
require 'getoptlong'
-require 'Pathname'
-
include Paludis
include Paludis::QA
@@ -432,16 +430,16 @@ end
unless ARGV.empty?
ARGV.each do |dir|
if dir.include? '/'
- full_dir = Pathname.new(dir)
+ full_dir = dir
else
- full_dir = Pathname.getwd + dir
+ full_dir = "#{Dir.getwd}/#{dir}"
end
- if full_dir.directory?
+ if File.directory? full_dir
do_check(full_dir)
else
$stderr.puts "#{full_dir} is not a directory"
end
end
else
- do_check(Pathname.getwd)
+ do_check(Dir.getwd)
end