[csw-devel] SF.net SVN: gar:[21079] csw/mgar/gar/v2/lib/python/generate_catalog_file.py
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Tue May 14 19:25:47 CEST 2013
Revision: 21079
http://gar.svn.sourceforge.net/gar/?rev=21079&view=rev
Author: dmichelsen
Date: 2013-05-14 17:25:47 +0000 (Tue, 14 May 2013)
Log Message:
-----------
mGAR v2: Add CREATIONDATE to catalog generation
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/generate_catalog_file.py
Modified: csw/mgar/gar/v2/lib/python/generate_catalog_file.py
===================================================================
--- csw/mgar/gar/v2/lib/python/generate_catalog_file.py 2013-05-14 16:48:11 UTC (rev 21078)
+++ csw/mgar/gar/v2/lib/python/generate_catalog_file.py 2013-05-14 17:25:47 UTC (rev 21079)
@@ -26,6 +26,7 @@
import optparse
import logging
import sys
+from datetime import datetime
class Error(Exception):
@@ -87,8 +88,10 @@
def _GenerateCatalogAsLines(self):
"""Return the complete catalog as a list of lines."""
lines = []
+ lines.append("# CREATIONDATE " + datetime.now().isoformat() + "Z")
+
# Potential additional lines might go here.
- # liens.append("...")
+ # lines.append("...")
if self.catalog: # the catalog might be None
for pkg_data in self.catalog:
lines.append(self.ComposeCatalogLine(pkg_data))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list