compile: writing description file should be conditional

This commit is contained in:
Sitaram Chamarty 2009-11-12 20:45:49 +05:30
parent 012d4b1fb6
commit 448c0d37ba

View file

@ -381,7 +381,7 @@ for my $repo (sort keys %repos) {
print "gitweb add $repo.git\n"; print "gitweb add $repo.git\n";
} }
# add the description file; no messages to user or error checking :) # add the description file; no messages to user or error checking :)
open(DESC, ">", $desc_file) and print DESC "$desc{$repo}\n" and close DESC; $desc{$repo} and open(DESC, ">", $desc_file) and print DESC "$desc{$repo}\n" and close DESC;
} else { } else {
if ($projlist{"$repo.git"}) { if ($projlist{"$repo.git"}) {
# delete it from new list # delete it from new list