summaryrefslogtreecommitdiffstats
path: root/urpm/cfg.pm
blob: aa485b534bdd207503c2d86524e2b33b6390c70d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package urpm::cfg;

use strict;
use warnings;

=head1 NAME

urpm::cfg - routines to handle the urpmi configuration files

=head1 SYNOPSIS

=head1 DESCRIPTION

=over

=cut

# Standard paths of the config files
our $PROXY_CFG = "/etc/urpmi/proxy.cfg";

=item set_environment($env_path)

Modifies the paths of the config files, so they will be searched
in the $env_path directory. This is obviously to be called early.

=cut

sub set_environment {
    my ($env) = @_;
    for ($PROXY_CFG) {
	$env =~ s,^/etc/urpmi,$env,;
    }
}

1;

__END__

=back

=cut