Created
April 8, 2010 19:13
-
-
Save slackorama/360424 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/gl-compile-conf b/src/gl-compile-conf | |
index c9b953b..71ef61b 100755 | |
--- a/src/gl-compile-conf | |
+++ b/src/gl-compile-conf | |
@@ -362,6 +362,12 @@ for my $fragment_file (glob("conf/fragments/*.conf")) | |
parse_conf_file($fragment_file, $fragment); | |
} | |
+# these 4 lines prevent a segfault on the Data::Dumper line | |
+for my $key ( keys %repos) { | |
+ my $wtf = $repos{ $key }; | |
+ my @dev_null_keys = sort keys %{ $wtf }; | |
+} | |
+ | |
my $compiled_fh = wrap_open( ">", $GL_CONF_COMPILED ); | |
my $dumped_data = Data::Dumper->Dump([\%repos], [qw(*repos)]); | |
# the dump uses single quotes, but we convert any strings containing $creater, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment