Skip to content

Commit

Permalink
Set $Vend::Cat as early as possible
Browse files Browse the repository at this point in the history
This solves a chicken-and-egg problem for configuration-time code that
works fine once the catalog is fully configured.
  • Loading branch information
jonjensen committed Sep 8, 2009
1 parent fd8bca3 commit 74803e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Vend/Config.pm
Expand Up @@ -1006,6 +1006,8 @@ sub config {
my($catalog, $dir, $confdir, $subconfig, $existing, $passed_file) = @_;
my($d, $parse, $var, $value, $lvar);

$Vend::Cat = $catalog;

if(ref $existing eq 'HASH') {
#::logDebug("existing=$existing");
$C = $existing;
Expand Down

0 comments on commit 74803e2

Please sign in to comment.