[sysadmin-bin: 92/168] Treat an empty description like the default description
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin: 92/168] Treat an empty description like the default description
- Date: Thu, 24 May 2012 19:59:11 +0000 (UTC)
commit 89dd8cf29afd342ad86d769b04ffebacf455fd2d
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Wed Apr 22 20:01:22 2009 -0400
Treat an empty description like the default description
If a repository is missing a description file, treat it as if
it had the default content that we substitute.
find-cgit-repos | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/find-cgit-repos b/find-cgit-repos
index 704c58b..a51391a 100755
--- a/find-cgit-repos
+++ b/find-cgit-repos
@@ -6,6 +6,9 @@
import os
import re
+# This is what GIT writes by default, we replace it with something better
+NO_DESCRIPTION = 'Unnamed repository; edit this file to name it for gitweb.'
+
grouplist = ('Administration Tools', 'Bindings', 'Deprecated', 'Desktop', 'Development Tools',
'Infrastructure', 'Platform', 'Productivity Tools', 'Other')
groupmap = {
@@ -47,7 +50,7 @@ def list_repos (paths):
desc = ''
if os.path.isfile(desc_file):
desc = open(desc_file).readline().strip()
- if desc == 'Unnamed repository; edit this file to name it for gitweb.':
+ if desc == '' or desc == NO_DESCRIPTION:
desc = "Please create %s.doap (see http://live.gnome.org/Git/FAQ)" % shortname
desc = pending + desc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]