[csw-devel] SF.net SVN: gar:[13117] csw/mgar/gar/v2/lib/python
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Sun Jan 30 01:29:04 CET 2011
Revision: 13117
http://gar.svn.sourceforge.net/gar/?rev=13117&view=rev
Author: wahwah
Date: 2011-01-30 00:29:04 +0000 (Sun, 30 Jan 2011)
Log Message:
-----------
notifier: Better reports for upgrades
The notifier will now display, from which package versions was the
upgrade.
It is possible that there is more than one old version superseded by the
new version.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/catalog_notifier.py
csw/mgar/gar/v2/lib/python/catalog_notifier_test.py
Modified: csw/mgar/gar/v2/lib/python/catalog_notifier.py
===================================================================
--- csw/mgar/gar/v2/lib/python/catalog_notifier.py 2011-01-29 23:57:10 UTC (rev 13116)
+++ csw/mgar/gar/v2/lib/python/catalog_notifier.py 2011-01-30 00:29:04 UTC (rev 13117)
@@ -45,7 +45,10 @@
Version change (probably upgrade):
#for basename in $pkg_data["upgraded_pkg"]
-* $basename
+#for from_basename in $pkg_data["upgraded_pkg"][basename]["from_pkg"]
+- $pkg_data["upgraded_pkg"][basename]["from_pkg"][from_basename]["file_basename"]
+#end for
++ $pkg_data["upgraded_pkg"][basename]["to_pkg"]["file_basename"]
In catalogs:
#for catalog in $sorted($pkg_data["upgraded_pkg"][basename]["catalogs"])
- $catalog[0] $catalog[1] $catalog[2]
@@ -56,7 +59,9 @@
You no longer maintain packages:
#for basename in $pkg_data["lost_pkg"]
-* $basename
+#for from_basename in $pkg_data["lost_pkg"][basename]["from_pkg"]
+- $pkg_data["lost_pkg"][basename]["from_pkg"][from_basename]["file_basename"]
+#end for
In catalogs:
#for catalog in $sorted($pkg_data["lost_pkg"][basename]["catalogs"])
- $catalog[0] $catalog[1] $catalog[2]
Modified: csw/mgar/gar/v2/lib/python/catalog_notifier_test.py
===================================================================
--- csw/mgar/gar/v2/lib/python/catalog_notifier_test.py 2011-01-29 23:57:10 UTC (rev 13116)
+++ csw/mgar/gar/v2/lib/python/catalog_notifier_test.py 2011-01-30 00:29:04 UTC (rev 13117)
@@ -180,6 +180,9 @@
"catalogs": [("fossil", "amd65", "SolarOS5.12")],
}}},
result["jack at example.com"])
+ # print f._RenderForMaintainer(
+ # result["jack at example.com"], "jack at example.com",
+ # "http://mirror.example.com")
if __name__ == '__main__':
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