[Cdd-commits] r1100 - in cdd/trunk/webtools: . webconf

CDD Subversion Commit noreply at alioth.debian.org
Mon Sep 29 21:16:32 UTC 2008


Author: tille
Date: Mon Sep 29 21:16:32 2008
New Revision: 1100

Added:
   cdd/trunk/webtools/ddpo_register.py   (contents, props changed)
Modified:
   cdd/trunk/webtools/distasktools.py
   cdd/trunk/webtools/webconf/debian-gis.conf
   cdd/trunk/webtools/webconf/debian-med.conf
   cdd/trunk/webtools/webconf/debian-science.conf
Log:
Prepare mail to subscribe packages of a DIS to ddtp


Added: cdd/trunk/webtools/ddpo_register.py
==============================================================================
--- (empty file)
+++ cdd/trunk/webtools/ddpo_register.py	Mon Sep 29 21:16:32 2008
@@ -0,0 +1,32 @@
+#!/usr/bin/python
+
+import apt
+import apt_pkg
+import apt_inst
+
+from sys import argv, exit, stderr
+import os
+import gettext
+
+import time
+from datetime import datetime
+from email.Utils import formatdate
+
+from distasktools import DisDependencies, ReadConfig
+
+if len(argv) <= 1:
+	print >>stderr, "Usage: %s <DIS name>\n       The <DIS name> needs a matching config file webconf/<DIS name>.conf"\
+                        % argv[0]
+	exit(-1)
+
+cdeps=DisDependencies(argv[1])
+cdeps.GetAllDependencies()
+packages     = cdeps.GetNamesOnlyDict()
+
+pkgist = cdeps.data['pkglist']
+
+
+for task in cdeps.metapackagekeys:
+	for type in ['depends', 'recommends', 'suggests']:
+		for project in cdeps.tasks[task].dependencies[type]:
+			print "subscribe %s %s" % ( project.pkg, task )

Modified: cdd/trunk/webtools/distasktools.py
==============================================================================
--- cdd/trunk/webtools/distasktools.py	(original)
+++ cdd/trunk/webtools/distasktools.py	Mon Sep 29 21:16:32 2008
@@ -63,6 +63,7 @@
             'homepage'    : '',
             'aliothurl'   : '',
             'projectlist' : '',
+            'pkglist'     : '',
             'logourl'     : '',
             'css'         : '',
             'outputdir'   : '',
@@ -79,8 +80,10 @@
                                                     # for instance at www.debian.org or wiki.debian.org
         ret['aliothurl']   = stanza['aliothurl']    # Link to the Alioth page of the project
         ret['projectlist'] = stanza['projectlist']  # Mailinglist of the project
+        if stanza.has_key('pkglist'):
+    	    ret['pkglist'] = stanza['pkglist']      # Packaging Mailinglist = Maintainer of group maintained packages
         if stanza.has_key('logourl'):
-            ret['logourl']     = stanza['logourl']      # URL to logo image (might be missing
+            ret['logourl'] = stanza['logourl']      # URL to logo image (might be missing
         ret['css']         = stanza['css']          # (relative) URL to CSS file
         ret['outputdir']   = stanza['outputdir']    # Dir for storing output HTML files
         ret['datadir']     = stanza['datadir']      # Dir for storing SVN information about project

Modified: cdd/trunk/webtools/webconf/debian-gis.conf
==============================================================================
--- cdd/trunk/webtools/webconf/debian-gis.conf	(original)
+++ cdd/trunk/webtools/webconf/debian-gis.conf	Mon Sep 29 21:16:32 2008
@@ -10,3 +10,4 @@
 CacheDir:    /var/lib/gforge/chroot/home/groups/cdd/cache
 VcsDir:      /svn/pkg-grass/packages/debian-gis
 CSS:         ../inc/style.css
+PkgList:     pkg-grass-devel at lists.alioth.debian.org

Modified: cdd/trunk/webtools/webconf/debian-med.conf
==============================================================================
--- cdd/trunk/webtools/webconf/debian-med.conf	(original)
+++ cdd/trunk/webtools/webconf/debian-med.conf	Mon Sep 29 21:16:32 2008
@@ -12,3 +12,4 @@
 VcsDir:      /svn/cdd/projects/med/trunk/debian-med
 CSS:         ../inc/style.css
 Advertising: _('Help us to see Debian used by medical practicioners and researchers! Join us on the <a href=\"http://alioth.debian.org/projects/debian-med\">Alioth page</a>.')
+PkgList:     debian-med-packaging at lists.alioth.debian.org

Modified: cdd/trunk/webtools/webconf/debian-science.conf
==============================================================================
--- cdd/trunk/webtools/webconf/debian-science.conf	(original)
+++ cdd/trunk/webtools/webconf/debian-science.conf	Mon Sep 29 21:16:32 2008
@@ -9,3 +9,4 @@
 CacheDir:    /var/lib/gforge/chroot/home/groups/cdd/cache
 VcsDir:      /svn/cdd/projects/science/trunk/debian-science
 CSS:         ../inc/style.css
+PkgList:     debian-science-maintainers at lists.alioth.debian.org



More information about the Cdd-commits mailing list