aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2009-07-16 21:36:34 +0100
committerAvatar Richard Brown <rbrown@exherbo.org> 2009-07-16 21:45:11 +0100
commit3b6c23134c890aace8d771c28baae9a6e8452955 (patch)
treef8b72f59edd2428ccbc3099df2d85c73e269a901
parent630c612ba02a017b4c3830c467abbeece7114fd4 (diff)
downloadpaludis-3b6c23134c890aace8d771c28baae9a6e8452955.tar.gz
paludis-3b6c23134c890aace8d771c28baae9a6e8452955.tar.xz
NoConfigEnvironment.new uses name not location of master repository
-rwxr-xr-xruby/demos/find_unused_distfiles.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/ruby/demos/find_unused_distfiles.rb b/ruby/demos/find_unused_distfiles.rb
index 16d6448..f947028 100755
--- a/ruby/demos/find_unused_distfiles.rb
+++ b/ruby/demos/find_unused_distfiles.rb
@@ -22,7 +22,8 @@ opts = GetoptLong.new(
env_spec = nil
size_limit = time_limit = nil
mirror_repository = mirror_distdir = nil
-write_cache_dir = master_repository_dir = "/var/empty"
+write_cache_dir = "/var/empty"
+master_repository_name = ''
opts.each do | opt, arg |
case opt
@@ -42,7 +43,7 @@ opts.each do | opt, arg |
puts " --mirror-repository In mirror mode, the location of the ebuild repository"
puts " --mirror-distdir In mirror mode, the location of the downloaded files"
puts " --write-cache-dir Use a subdirectory named for the repository name under the specified directory for repository write cache"
- puts " --master-repository-dir Use the specified location for the master repository"
+ puts " --master-repository The name of the master repository"
exit 0
when '--version'
@@ -103,8 +104,8 @@ opts.each do | opt, arg |
when '--write-cache-dir'
write_cache_dir = arg
- when '--master-repository-dir'
- master_repository_dir = arg
+ when '--master-repository'
+ master_repository_name = arg
end
end
@@ -119,7 +120,7 @@ if mirror_repository && env_spec then
end
if mirror_repository then
- env = Paludis::NoConfigEnvironment.new(mirror_repository, write_cache_dir, master_repository_dir)
+ env = Paludis::NoConfigEnvironment.new(mirror_repository, write_cache_dir, master_repository_name)
relevant_packages = Paludis::Generator::InRepository.new(env.main_repository.name)
$check_condition = lambda { true }
$banned_labels = {