[sysadmin-bin: 90/168] Add unmodified description handling into Python find-repos



commit 938543a7ff8803e4f6daf18cfdc47b3237263a1b
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Wed Apr 22 19:35:19 2009 -0400

    Add unmodified description handling into Python find-repos
    
    Merge Federico's changes for providing a better message for
    undescribed repositories into Shaun's Python rewrite.

 find-cgit-repos |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/find-cgit-repos b/find-cgit-repos
index d5a0502..4eeb45e 100755
--- a/find-cgit-repos
+++ b/find-cgit-repos
@@ -46,6 +46,8 @@ 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.':
+                    desc = "Please create %s.doap (see http://live.gnome.org/Git/FAQ)" % shortname
             desc = pending + desc
                 
             group_file = os.path.join(repopath, 'gnome_group')



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]