[vhffs-dev] [842] Bye bye get_repository_config

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 842
Author:   gradator
Date:     2007-08-30 22:27:03 +0000 (Thu, 30 Aug 2007)

Log Message:
-----------
Bye bye get_repository_config

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Conf.pm
    trunk/vhffs-robots/src/repository_stats.pl


Modified: trunk/vhffs-api/src/Vhffs/Conf.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Conf.pm	2007-08-30 22:13:46 UTC (rev 841)
+++ trunk/vhffs-api/src/Vhffs/Conf.pm	2007-08-30 22:27:03 UTC (rev 842)
@@ -351,12 +351,6 @@
 }
 
 
-sub get_repository_config
-{
-	return $Config{"services"}{"repository"};
-}
-
-
 sub use_vhffsfs
 {
 	return 1 if( ( defined $Config{'global'}{'use_vhffsfs'} ) && ( $Config{'global'}{'use_vhffsfs'} eq 'yes' ) );

Modified: trunk/vhffs-robots/src/repository_stats.pl
===================================================================
--- trunk/vhffs-robots/src/repository_stats.pl	2007-08-30 22:13:46 UTC (rev 841)
+++ trunk/vhffs-robots/src/repository_stats.pl	2007-08-30 22:27:03 UTC (rev 842)
@@ -50,7 +50,7 @@
 my $repos = Vhffs::Services::Repository::getall( $vhffs , Vhffs::Constants::ACTIVATED );
 die "ERROR: Cannot fetch the list of repository\n" if( ! defined $repos );
 
-my $repoconf = Vhffs::Conf::get_repository_config();
+my $repoconf = $vhffs->get_config->get_service('repository');
 die "ERROR: A full repository configuration is needed to generate stats\n" if ( ! defined $repoconf );
 
 my $conf_datadir = Vhffs::Conf::get_datadir;


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/