aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Bo Ørsted Andresen <zlin@exherbo.org> 2011-09-20 13:04:27 +0000
committerAvatar Bo Ørsted Andresen <zlin@exherbo.org> 2011-09-20 13:04:27 +0000
commit665fd743af9bbf13bcc7d4a46a7bc2239baea594 (patch)
treef8948a0ff9b548a11f4addad3238d60d01821ee6
parent911b81e9d784919bd13509af1c404b63da6549ba (diff)
downloaddexter-665fd743af9bbf13bcc7d4a46a7bc2239baea594.tar.gz
dexter-665fd743af9bbf13bcc7d4a46a7bc2239baea594.tar.xz
API fixes.
-rwxr-xr-xdexter.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/dexter.rb b/dexter.rb
index 467000d..9a5dd5f 100755
--- a/dexter.rb
+++ b/dexter.rb
@@ -151,7 +151,7 @@ class Victim
Paludis::Generator::Package.new(qpn) &
Paludis::Generator::InRepository.new(@repo.name) |
Paludis::Filter::SupportsAction.new(Paludis::InstallAction))].
- group_by { |id| id.slot_key.value }
+ group_by { |id| id.slot_key.parse_value }
first_slot_in_pkg = true
@@ -160,7 +160,7 @@ class Victim
first_slot_in_pkg = false
grave << " #{qpn.package}/\n"
end
- grave << " :#{slot.last.slot_key.value}"
+ grave << " :#{slot.last.slot_key.parse_value}"
slot.each { |id| grave << " #{id.version}" }
have_desc = false
@@ -169,14 +169,14 @@ class Victim
slot.reverse_each do |id|
if !have_desc &&
!id.short_description_key.nil? &&
- !id.short_description_key.value.empty?
- desc = id.short_description_key.value
+ !id.short_description_key.parse_value.empty?
+ desc = id.short_description_key.parse_value
have_desc = true
end
if !have_homepage &&
!id.homepage_key.nil? &&
- id.homepage_key.value.any?
- homepage = id.homepage_key.value.first
+ id.homepage_key.parse_value.any?
+ homepage = id.homepage_key.parse_value.first
have_homepage = true
end
if have_desc && have_homepage: break end
@@ -196,7 +196,7 @@ end
class Victim::Package < Victim
def initialize(env, spec, repo_dir, comment=nil)
super(env, spec)
- @repo = env.package_database.fetch_repository(spec.in_repository)
+ @repo = env.fetch_repository(spec.in_repository)
@comment = comment
@location = repo_dir + "/" + @repo.name
@is_repo = false
@@ -211,7 +211,7 @@ end
class Victim::Repository < Victim
def initialize(env, spec)
super(env, spec)
- @repo = env.package_database.fetch_repository(spec.package.package)
+ @repo = env.fetch_repository(spec.package.package)
@is_repo = true
@is_pkg = false
end