about summary refs log tree commit diff
path: root/perl/lib/Nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-09T14·57-0400
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-07-09T14·57-0400
commit099125435fc5ada63365a94ca153c711e706e225 (patch)
treef64ef41264120d9b740e7a1819ea261fa1145c2d /perl/lib/Nix
parent98a423b75aa9061f0164c316f9d2481ce6d5e2f1 (diff)
download-from-binary-cache: add nix.conf options
Diffstat (limited to 'perl/lib/Nix')
-rw-r--r--perl/lib/Nix/Config.pm.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl/lib/Nix/Config.pm.in b/perl/lib/Nix/Config.pm.in
index 64aaccd7cd31..57751b6b4057 100644
--- a/perl/lib/Nix/Config.pm.in
+++ b/perl/lib/Nix/Config.pm.in
@@ -14,16 +14,16 @@ $curl = "@curl@";
 
 $useBindings = "@perlbindings@" eq "yes";
 
+%config = ();
+
 sub readConfig {
-    my %config;
-    my $config = "@sysconfdir@/nix/nix.conf";
+    my $config = "$confDir/nix.conf";
     return unless -f $config;
     
     open CONFIG, "<$config" or die "cannot open `$config'";
     while (<CONFIG>) {
         /^\s*([\w|-]+)\s*=\s*(.*)$/ or next;
         $config{$1} = $2;
-        print "|$1| -> |$2|\n";
     }
     close CONFIG;
 }