(minor) do not purge projects.list if GL_NO_DAEMON_NO_GITWEB set

The code that sets %projlist doesn't even run if GL_NO_DAEMON_NO_GITWEB
is set, so it doesn't make sense to then *use* that (empty) variable and
effectively wipe out the projects.list file.

Thanks to m0 for asking...
This commit is contained in:
Sitaram Chamarty 2011-03-10 21:48:28 +05:30
parent bf7516b2c4
commit b7944ed4d1

View file

@ -549,12 +549,14 @@ for my $repo (@phy_repos) {
setup_git_configs($repo, \%git_configs) if $git_configs{$repo};
}
# write out the project list
# write out the project list, but not if GL_NO_DAEMON_NO_GITWEB is set
unless ($GL_NO_DAEMON_NO_GITWEB) {
my $projlist_fh = wrap_open( ">", $PROJECTS_LIST);
for my $proj (sort keys %projlist) {
print $projlist_fh "$proj\n";
}
close $projlist_fh;
}
# ----------------------------------------------------------------------------
# "compile" ssh authorized_keys