aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Brett Witherspoon <spoonb@exherbo.org> 2011-02-24 13:35:31 +0000
committerAvatar Brett Witherspoon <spoonb@exherbo.org> 2011-02-24 13:35:31 +0000
commit68fbb25f2390e3b7aa7907d990d90c381c428736 (patch)
tree05419dafd7466960ac3579a25d5dcd640172f49c
parent972fbcc9f989780169765aa8d0515d178de03785 (diff)
downloaddexter-68fbb25f2390e3b7aa7907d990d90c381c428736.tar.gz
dexter-68fbb25f2390e3b7aa7907d990d90c381c428736.tar.xz
more cleanup
-rwxr-xr-xdexter.rb17
1 files changed, 7 insertions, 10 deletions
diff --git a/dexter.rb b/dexter.rb
index 5c3e7e0..467000d 100755
--- a/dexter.rb
+++ b/dexter.rb
@@ -102,10 +102,7 @@ class Graveyard
end
def sanitize_name(name)
- name.strip!
- name.delete! "-"
- name.delete! "/"
- name
+ name.strip.delete("-").delete("/")
end
end
@@ -133,9 +130,9 @@ class Victim
@is_pkg
end
-protected
+ protected
- def bury_slots(qpn=@qpn)
+ def bury_slots(qpn)
commit_id = ""
homepage = "[no homepage available]"
desc = "[no description available]"
@@ -207,7 +204,7 @@ class Victim::Package < Victim
end
def bury
- self.bury_slots
+ self.bury_slots(@qpn)
end
end
@@ -222,7 +219,7 @@ class Victim::Repository < Victim
def bury
graves = ""
@repo.category_names do |cat|
- graves << "#{cat}/\n" if not @repo.package_names(cat).empty?
+ graves << "#{cat}/\n" unless @repo.package_names(cat).empty?
@repo.package_names(cat) do |qpn|
graves << self.bury_slots(qpn)
end
@@ -253,10 +250,10 @@ options.each do |opt, arg|
puts "Usage: #$0 [OPTIONS] package1 package2 ..."
puts
puts " --help, -h Display this help message"
- puts " --log-levelm -L Paludis log level"
+ puts " --log-level, -L Paludis log level"
puts " --environment, -E Paludis environment specification"
puts " --graveyard-dir, -g Path to the graveyard repository"
- puts " --repository-dir, -r Path to the repository directory"
+ puts " --repository-dir, -r Path to a directory containing repositories"
puts " --comment, -c A comment to include for all targets"
puts
exit 0